18 "/usr/bin/vendor_perl"
23 resholve.mkDerivation rec {
24 pname = "arch-install-scripts";
27 src = fetchFromGitHub {
29 repo = "arch-install-scripts";
31 hash = "sha256-owJImToG8GIk1TfkSKJyXCu9RTJ1qYlvQ6DTMSazaeQ=";
34 nativeBuildInputs = [ asciidoc gnum4 ];
37 substituteInPlace ./Makefile \
38 --replace "PREFIX = /usr/local" "PREFIX ?= /usr/local"
39 substituteInPlace ./pacstrap.in \
40 --replace "cp -a" "cp -LR --no-preserve=mode" \
41 --replace "unshare pacman" "unshare ${pacman}/bin/pacman" \
42 --replace 'gnupg "$newroot/etc/pacman.d/"' 'gnupg "$newroot/etc/pacman.d/" && chmod 700 "$newroot/etc/pacman.d/gnupg"'
43 echo "export PATH=${lib.strings.makeSearchPath "" chrootPath}:\$PATH" >> ./common
46 installFlags = [ "PREFIX=$(out)" ];
51 # Give each solution a short name. This is what you'd use to
52 # override its settings, and it shows in (some) error messages.
54 # the only *required* arguments are the 3 below
56 # Specify 1 or more $out-relative script paths. Unlike many
57 # builders, resholve.mkDerivation modifies the output files during
58 # fixup (to correctly resolve in-package sourcing).
59 scripts = [ "bin/arch-chroot" "bin/genfstab" "bin/pacstrap" ];
61 # "none" for no shebang, "${bash}/bin/bash" for bash, etc.
62 interpreter = "${bash}/bin/bash";
64 # packages resholve should resolve executables from
65 inputs = [ coreutils gawk gnugrep pacman util-linux ];
67 execer = [ "cannot:${pacman}/bin/pacman-key" ];
69 # TODO: no good way to resolve mount/umount in Nix builds for now
70 # see https://github.com/abathur/resholve/issues/29
72 external = [ "mount" "umount" ];
75 keep = [ "$setup" "$pid_unshare" "$mount_unshare" "${pacman}/bin/pacman" ];
80 description = "Useful scripts for installing Arch Linux";
82 A small suite of scripts aimed at automating some menial tasks when installing Arch Linux.
84 homepage = "https://github.com/archlinux/arch-install-scripts";
85 license = licenses.gpl2Only;
86 maintainers = with maintainers; [ samlukeyes123 ];
87 platforms = platforms.linux;