fix oneshot "up" and "down" files

they're supposed to be names of executables, not text of
shell scripts
This commit is contained in:
Daniel Barlow 2022-09-25 21:02:10 +01:00
parent 01aa423dad
commit 92e42f1d45

View file

@ -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;
};