19 "/usr/bin/vendor_perl"
24 resholve.mkDerivation rec {
25 pname = "arch-install-scripts";
28 src = fetchFromGitLab {
29 domain = "gitlab.archlinux.org";
31 repo = "arch-install-scripts";
33 hash = "sha256-XWcZZ+ET3J4dB6M9CdXESf0iQh+2vYxlxoJ6TZ3vFUk=";
42 substituteInPlace ./Makefile \
43 --replace "PREFIX = /usr/local" "PREFIX ?= /usr/local"
44 substituteInPlace ./pacstrap.in \
45 --replace "cp -a" "cp -LR --no-preserve=mode" \
46 --replace "unshare pacman" "unshare ${pacman}/bin/pacman" \
47 --replace 'gnupg "$newroot/etc/pacman.d/"' 'gnupg "$newroot/etc/pacman.d/" && chmod 700 "$newroot/etc/pacman.d/gnupg"'
48 echo "export PATH=${lib.strings.makeSearchPath "" chrootPath}:\$PATH" >> ./common
51 installFlags = [ "PREFIX=$(out)" ];
56 # Give each solution a short name. This is what you'd use to
57 # override its settings, and it shows in (some) error messages.
59 # the only *required* arguments are the 3 below
61 # Specify 1 or more $out-relative script paths. Unlike many
62 # builders, resholve.mkDerivation modifies the output files during
63 # fixup (to correctly resolve in-package sourcing).
70 # "none" for no shebang, "${bash}/bin/bash" for bash, etc.
71 interpreter = "${bash}/bin/bash";
73 # packages resholve should resolve executables from
83 execer = [ "cannot:${pacman}/bin/pacman-key" ];
85 # TODO: no good way to resolve mount/umount in Nix builds for now
86 # see https://github.com/abathur/resholve/issues/29
96 "${pacman}/bin/pacman"
102 description = "Useful scripts for installing Arch Linux";
104 A small suite of scripts aimed at automating some menial tasks when installing Arch Linux.
106 homepage = "https://github.com/archlinux/arch-install-scripts";
107 license = licenses.gpl2Only;
108 maintainers = with maintainers; [ samlukeyes123 ];
109 platforms = platforms.linux;