29 scheme-bytestructures,
37 storeDir ? "/gnu/store",
41 stdenv.mkDerivation rec {
46 url = "mirror://gnu/guix/guix-${version}.tar.gz";
47 hash = "sha256-Q8dpy/Yy7wVEmsH6SMG6FSwzSUxqvH5HE3u6eyFJ+KQ=";
52 name = "CVE-2024-27297_1.patch";
53 url = "https://git.savannah.gnu.org/cgit/guix.git/patch/?id=8f4ffb3fae133bb21d7991e97c2f19a7108b1143";
54 hash = "sha256-xKo1h2uckC2pYHt+memekagfL6dWcF8gOnTOOW/wJUU=";
57 name = "CVE-2024-27297_2.patch";
58 url = "https://git.savannah.gnu.org/cgit/guix.git/patch/?id=ff1251de0bc327ec478fc66a562430fbf35aef42";
59 hash = "sha256-f4KWDVrvO/oI+4SCUHU5GandkGtHrlaM1BWygM/Qlao=";
61 # see https://guix.gnu.org/en/blog/2024/build-user-takeover-vulnerability
63 inherit pname version;
65 patch = "security/0101-daemon-Sanitize-failed-build-outputs-prior-to-exposi.patch";
66 hash = "sha256-cbra/+K8+xHUJrCKRgzJCuhMBpzCSjgjosKAkJx7QIo=";
69 inherit pname version;
71 patch = "security/0102-daemon-Sanitize-successful-build-outputs-prior-to-ex.patch";
72 hash = "sha256-mOnlYtpIuYL+kDvSNuXuoDLJP03AA9aI2ALhap+0NOM=";
77 sed nix/local.mk -i -E \
78 -e "s|^sysvinitservicedir = .*$|sysvinitservicedir = $out/etc/init.d|" \
79 -e "s|^openrcservicedir = .*$|openrcservicedir = $out/etc/openrc|"
107 scheme-bytestructures
118 propagatedBuildInputs = [
133 scheme-bytestructures
137 "--with-store-dir=${storeDir}"
138 "--localstatedir=${stateDir}"
139 "--sysconfdir=${confDir}"
140 "--with-bash-completion-dir=$(out)/etc/bash_completion.d"
143 enableParallelBuilding = true;
146 for f in $out/bin/*; do
148 --prefix GUILE_LOAD_PATH : "$out/${guile.siteDir}:$GUILE_LOAD_PATH" \
149 --prefix GUILE_LOAD_COMPILED_PATH : "$out/${guile.siteCcacheDir}:$GUILE_LOAD_COMPILED_PATH"
154 inherit (nixosTests) guix;
158 description = "Functional package manager with a Scheme interface";
160 GNU Guix is a purely functional package manager for the GNU system, and a distribution thereof.
161 In addition to standard package management features, Guix supports
162 transactional upgrades and roll-backs, unprivileged package management,
163 per-user profiles, and garbage collection.
164 It provides Guile Scheme APIs, including high-level embedded
165 domain-specific languages (EDSLs), to describe how packages are built
167 A user-land free software distribution for GNU/Linux comes as part of
169 Guix is based on the Nix package manager.
171 homepage = "http://www.gnu.org/software/guix";
172 changelog = "https://git.savannah.gnu.org/cgit/guix.git/plain/NEWS?h=v${version}";
173 license = licenses.gpl3Plus;
174 mainProgram = "guix";
175 maintainers = with maintainers; [
179 platforms = platforms.linux;