forked from dan/liminix
1
0
Fork 0

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
1 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@
, lib , lib
, busybox , busybox
, callPackage , callPackage
, writeAshScript
} :let } :let
inherit (builtins) concatStringsSep; inherit (builtins) concatStringsSep;
longrun = { longrun = {
@ -37,7 +38,9 @@
# store directories? # store directories?
buildInputs = dependencies; buildInputs = dependencies;
shell = "${busybox}/bin/sh"; 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; dependencies = builtins.map (d: d.name) dependencies;
builder = ./builder.sh; builder = ./builder.sh;
}; };