···91 # we just copy what we need from Glibc and use patchelf to make it
92 # work.
93 extraUtils = pkgs.runCommand "extra-utils"
94- { nativeBuildInputs = [pkgs.buildPackages.nukeReferences];
95 allowedReferences = [ "out" ]; # prevent accidents like glibc being included in the initrd
96 }
97 ''
···122 # code, using default options and effectively ignore security relevant
123 # ZFS properties such as `setuid=off` and `exec=off` (unless manually
124 # duplicated in `fileSystems.*.options`, defeating "zfsutil"'s purpose).
125- copy_bin_and_libs ${pkgs.util-linux.mount}/bin/mount
126 copy_bin_and_libs ${pkgs.zfs}/bin/mount.zfs
127 ''}
128
···91 # we just copy what we need from Glibc and use patchelf to make it
92 # work.
93 extraUtils = pkgs.runCommand "extra-utils"
94+ { nativeBuildInputs = with pkgs.buildPackages; [ nukeReferences bintools ];
95 allowedReferences = [ "out" ]; # prevent accidents like glibc being included in the initrd
96 }
97 ''
···122 # code, using default options and effectively ignore security relevant
123 # ZFS properties such as `setuid=off` and `exec=off` (unless manually
124 # duplicated in `fileSystems.*.options`, defeating "zfsutil"'s purpose).
125+ copy_bin_and_libs ${lib.getOutput "mount" pkgs.util-linux}/bin/mount
126 copy_bin_and_libs ${pkgs.zfs}/bin/mount.zfs
127 ''}
128
···46 switch between Nodes. You can install npm package binaries in your
47 toolchain without having to periodically reinstall them or figure out why
48 they’ve stopped working.
00049 '';
50 homepage = "https://volta.sh/";
51 changelog = "https://github.com/volta-cli/volta/blob/main/RELEASES.md";
···46 switch between Nodes. You can install npm package binaries in your
47 toolchain without having to periodically reinstall them or figure out why
48 they’ve stopped working.
49+50+ Note: Volta cannot be used on NixOS out of the box because it downloads
51+ Node binaries that assume shared libraries are in FHS standard locations.
52 '';
53 homepage = "https://volta.sh/";
54 changelog = "https://github.com/volta-cli/volta/blob/main/RELEASES.md";
···232 # replicated here to apply to older versions.
233 # Makes __FILE__ relative to the build directory.
234 "KCPPFLAGS=-fmacro-prefix-map=$(sourceRoot)/="
235- ] ++ extraMakeFlags;
000236237 installFlags = [
238 "INSTALL_PATH=$(out)"
···232 # replicated here to apply to older versions.
233 # Makes __FILE__ relative to the build directory.
234 "KCPPFLAGS=-fmacro-prefix-map=$(sourceRoot)/="
235+ kernelConf.target
236+ ] ++ optional isModular "modules"
237+ ++ optional buildDTBs "dtbs"
238+ ++ extraMakeFlags;
239240 installFlags = [
241 "INSTALL_PATH=$(out)"
+4-4
pkgs/os-specific/linux/systemd/default.nix
···510511 "-Dsulogin-path=${util-linux.login}/bin/sulogin"
512 "-Dnologin-path=${util-linux.login}/bin/nologin"
513- "-Dmount-path=${util-linux.mount}/bin/mount"
514- "-Dumount-path=${util-linux.mount}/bin/umount"
515 "-Dcreate-log-dirs=false"
516517 # Use cgroupsv2. This is already the upstream default, but better be explicit.
···562 "man/systemd-makefs@.service.xml"
563 ];
564 }
565- { search = "/sbin/swapon"; replacement = "${util-linux.swap}/sbin/swapon"; where = [ "src/core/swap.c" "src/basic/unit-def.h" ]; }
566- { search = "/sbin/swapoff"; replacement = "${util-linux.swap}/sbin/swapoff"; where = [ "src/core/swap.c" ]; }
567 {
568 search = "/bin/echo";
569 replacement = "${coreutils}/bin/echo";
···510511 "-Dsulogin-path=${util-linux.login}/bin/sulogin"
512 "-Dnologin-path=${util-linux.login}/bin/nologin"
513+ "-Dmount-path=${lib.getOutput "mount" util-linux}/bin/mount"
514+ "-Dumount-path=${lib.getOutput "mount" util-linux}/bin/umount"
515 "-Dcreate-log-dirs=false"
516517 # Use cgroupsv2. This is already the upstream default, but better be explicit.
···562 "man/systemd-makefs@.service.xml"
563 ];
564 }
565+ { search = "/sbin/swapon"; replacement = "${lib.getOutput "swap" util-linux}/sbin/swapon"; where = [ "src/core/swap.c" "src/basic/unit-def.h" ]; }
566+ { search = "/sbin/swapoff"; replacement = "${lib.getOutput "swap" util-linux}/sbin/swapoff"; where = [ "src/core/swap.c" ]; }
567 {
568 search = "/bin/echo";
569 replacement = "${coreutils}/bin/echo";