forked from DGNum/liminix
fix oneshot "up" and "down" files
they're supposed to be names of executables, not text of shell scripts
This commit is contained in:
parent
01aa423dad
commit
92e42f1d45
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue