Guix

274 readers
1 users here now

Guix is an advanced distribution of the GNU operating system developed by the GNU Project

founded 4 years ago
MODERATORS
26
5
(lemmy.ml)
submitted 9 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]
 
 

I would like to go for the old OPENSTEP/NEXTSTEP desktop on Guix-installed device. How do I go about configuring it? Working on Guille configs for tweaking the desktop hasn't been that easy for me on Guix, as there's no proper equivalent of NixOS for the same.

27
8
(lemmy.ml)
submitted 9 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]
 
 

Funny how the NixOS manual helped me more than the ones by Guix, especially when it came to shell setup stuffs like partitioning disk and writing Guile configurations from scratch.

It took me two days to finish the entire setup. The default configs are either pretty bloated or the servers are quite far from me. And building the Linux kernel from scratch to support propreitary Realtek WiFi drivers just took a lot of time. I guess asking a university in China, India or SEA to host a substitute might be quite helpful to those living in Asia.

Now I have two systems: one running on NixOS and other on Guix. Transactional package managers all day 😄 .

28
 
 

I thought this was really cool: it's backed by a non-profit and one of their supported distros is Guix System!

29
2
(lemmy.ml)
submitted 9 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]
 
 

Permanently Deleted

30
4
(lemmy.ml)
submitted 10 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]
 
 

Permanently Deleted

31
32
 
 

I had installed Guix with Mate as my DE but a big part of my desktop experience is having Plank as my dock. I don't see it in the package list on the Guix website. Am I mistaken or is Plank not usable on Guix ? Any recomendations for alternatives ?

33
 
 

My error message when trying to run minikube from a guix shell is bash: /gnu/store/ixry3pdrrb52mdiypmlrdn19c7gcc5r4-minikube-1.31.2/bin/minikube: No such file or directory

According to ldd and file, it looks like everything is hunky dory as far as where all my linkers are pointing. I'm also including an strace further below. I've run out of options for debugging this and would welcome any feedback and suggestions!

ldd shows what looks like clean RPATHs:

 /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libc.so.6 (0x00007f9299546000)
	libpthread.so.0 => /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libpthread.so.0 (0x00007f9299541000)
	libresolv.so.2 => /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libresolv.so.2 (0x00007f929952e000)
	/lib64/ld-linux-x86-64.so.2 => /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/ld-linux-x86-64.so.2 (0x00007f9299744000)

Here's file:

/gnu/store/xhyv7k87gy9k368yrv6faray37z615cr-minikube-1.31.2/bin/minikube: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/ld-linux-x86-64.so.2, Go BuildID=aBEWfkldQzf4mlUsITym/a6aHGcy9omlZPRTvR8ta/1-lUpI-DPce979zTpJQy/jMuF_0TfmkRW2e3NFst2, not stripped

And strace:

Error:
strace /gnu/store/xhyv7k87gy9k368yrv6faray37z615cr-minikube-1.31.2/bin/minikube
execve("/gnu/store/xhyv7k87gy9k368yrv6faray37z615cr-minikube-1.31.2/bin/minikube", ["/gnu/store/xhyv7k87gy9k368yrv6fa"...], 0x7ffc5f304810 /* 109 vars */) = 0
brk(NULL)                               = 0x50b7000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2daf26c000
***
SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR, si_addr=0x400318}
***
+++ killed by SIGSEGV +++
Segmentation fault
    (define-module (worldofguix packages minikube)
      #:use-module (guix packages)
      #:use-module (guix download)
      #:use-module ((guix licenses) :prefix license:)
      #:use-module (guix gexp)
      #:use-module (gnu packages gcc)
      #:use-module (gnu packages commencement)
      #:use-module (nonguix build-system binary))

    (define-public minikube
      (package
       (name "minikube")
       (version "1.31.2")
       (source (origin
                 (method url-fetch)
                 (uri (string-append "https://github.com/kubernetes/minikube/releases/download/v" version "/minikube-linux-amd64"))
                  (sha256
                   (base32
                    "16vi7b6vkapc2w3f2yx8mzany5qqvrgvlshc58dambcn2q2hra48"))))
        (build-system binary-build-system)
        (inputs `((,gcc "lib")
              ,gcc-toolchain))
        (arguments
         (list
          #:substitutable? #f
          #:patchelf-plan
           #~'(("./minikube"
              ("gcc" "gcc-toolchain")))
          #:install-plan
          #~'(("minikube" "bin/"))
          #:phases
          #~(modify-phases %standard-phases
              (replace 'unpack
                (lambda _
                  (copy-file #$source "./minikube")
                  (chmod "minikube" #o644)))
              (add-before 'install 'chmod
                (lambda _
                  (chmod "minikube" #o555))))))
        (home-page "https://minikube.sigs.k8s.io")
        (synopsis "minikube is a tool for running local Kubernetes clusters.")
        (description "minikube implements a local Kubernetes cluster. minikube's primary goals are to be the best tool for local Kubernetes application development and to support all Kubernetes features that fit.")
        (license license:asl2.0)))

    minikube
34
 
 

Does anyone have experience in flashing the Pinebook Pro EMMC with Guix? The images provided on the website don't boot on my SDCard with TowBoot.

I flashed it multiple times with

dd if=guix-latest.img of=/dev/mmcblkX bs=4M status=progress oflag=sync

Am I supposed to do something specific?

35
36
 
 

Hey all. Can anyone recommend me a path or some resouces how I could more learn about Guix? I know packaging is a large part of Guix, yet the information on how to package, or contribute in providing packages seems little difficult to find. Thank you.

37
 
 

I recently installed Guix in hopes of learning to use it. I wanted to update the system and gathered from the reference card that the proper command was "guix pull". My issue is that while no error message is given this didn't seem to update anything after. One thing that makes me think this is that I'm still on the 6.0.10 kernel as I was before. Am I doing this wrong ?

38
 
 

Hello. I am new to the Guix GNU+Linux distro. And I'm trying to get the latest version of Anki (2.1.65). However, the newest version is not in the Guix channel. I'm reading here that a simple edit to the education.scm file (the version var) would fix it. Unfortunately, the education.scm file in a Guix system is readonly. Unless they update the code, my only option is to make a custom module and package to supply a newer version. Though, I don't know how to do that (I'm a noobie). I just need help on figuring that out. Any help is appreciated.

39
 
 

just decided to share this information on a cool recently released command that i have been eager to see for a while and hopefully jumpstart things on the guix community here!

40
41
 
 

How can I prevent Doom Emacs from pointlessly downloading emacs packages whenever I update it and instead load the ones provided by Guix?

I have this in my Doom configuration but I have no idea about how to test if it's working, and anyway Doom still dowloads i.e. undo-tree which I installed in my Guix profile

42
43
44
45
3
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 
 

There is no shortage of package managers. Each tool makes its own set of tradeoffs regarding speed, ease of use, customizability, and reproducibility. Guix occupies a sweet spot, providing reproducibility by design as pioneered by Nix, package customization à la Spack from the command line, the ability to create container images without hassle, and more.

Beyond the “feature matrix” of the tools themselves, a topic that is often overlooked is packages—or rather, what’s inside of them. Chances are that a given package may be installed using any of the many tools at your disposal. But are you really getting the same thing regardless of the tool you are using? The answer is “no”, contrary to what one might think. The author realized this very acutely while fearlessly attempting to package the PyTorch machine learning framework for Guix.

This post is about the journey packaging PyTorch the Guix way, the rationale, a glimpse at what other PyTorch packages out there look like, and conclusions we can draw for high-performance computing and scientific workflows.

46
 
 
47
48