users/s6-rc: add symlink capabilities to my fs abstraction
This commit is contained in:
parent
5ecabc57bf
commit
ad951ad919
|
@ -35,6 +35,14 @@ let
|
|||
}
|
||||
else
|
||||
pkgs.emptyDirectory
|
||||
else if obj ? symlink then
|
||||
if obj.symlink != null then
|
||||
pkgs.runCommandLocal "s6-${path}" { } ''
|
||||
mkdir -p "$out/$(dirname "${path}")"
|
||||
ln -s "${obj.symlink}" "$out/${path}"
|
||||
''
|
||||
else
|
||||
pkgs.emptyDirectory
|
||||
else throw "don't know how to convert fs item at path ${path} to derivation: ${obj}";
|
||||
|
||||
# call with an AttrSet of fs items:
|
||||
|
|
Loading…
Reference in New Issue