commit 92e42f1d459a3de90526d50daec08b493a47a4f5
parent 01aa423dad5700b3e0a8d0d680e259bfcf0708e7
Author: Daniel Barlow <dan@telent.net>
Date: Sun, 25 Sep 2022 21:02:10 +0100
fix oneshot "up" and "down" files
they're supposed to be names of executables, not text of
shell scripts
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pkgs/liminix-tools/default.nix b/pkgs/liminix-tools/default.nix
@@ -4,6 +4,7 @@
, lib
, busybox
, callPackage
+, writeAshScript
} :let
inherit (builtins) concatStringsSep;
longrun = {
@@ -37,7 +38,9 @@
# store directories?
buildInputs = dependencies;
shell = "${busybox}/bin/sh";
- inherit up down;
+ # up and down for oneshots are pathnames not scripts
+ up = writeAshScript "${name}-up" {} up;
+ down = writeAshScript "${name}-down" {} down;
dependencies = builtins.map (d: d.name) dependencies;
builder = ./builder.sh;
};