From 92e42f1d459a3de90526d50daec08b493a47a4f5 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sun, 25 Sep 2022 21:02:10 +0100 Subject: [PATCH] fix oneshot "up" and "down" files they're supposed to be names of executables, not text of shell scripts --- pkgs/liminix-tools/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/liminix-tools/default.nix b/pkgs/liminix-tools/default.nix index 5f5ddae..366fbb2 100644 --- 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; };