sane-scripts: simplify recursively referencing sane scripts

This commit is contained in:
2022-12-19 06:18:44 +00:00
parent 567c08460a
commit 72b627100c

View File

@@ -18,6 +18,10 @@ resholve.mkDerivation {
scripts = [ "bin/*" ]; scripts = [ "bin/*" ];
interpreter = "${pkgs.bash}/bin/bash"; interpreter = "${pkgs.bash}/bin/bash";
inputs = with pkgs; [ inputs = with pkgs; [
# string is interpreted as relative path from @OUT@.
# this lets our scripts reference eachother.
# see: <https://github.com/abathur/resholve/issues/26>
"bin"
coreutils coreutils
curl curl
duplicity duplicity
@@ -55,11 +59,6 @@ resholve.mkDerivation {
# https://github.com/abathur/resholve/issues/29 # https://github.com/abathur/resholve/issues/29
"umount" "umount"
"sudo" "sudo"
# these are used internally; probably a better fix
"sane-mount-servo"
"sane-private-lock"
"sane-private-unlock"
]; ];
}; };