users/s6-rc: add symlink capabilities to my fs abstraction
This commit is contained in:
@@ -35,6 +35,14 @@ let
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
pkgs.emptyDirectory
|
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}";
|
else throw "don't know how to convert fs item at path ${path} to derivation: ${obj}";
|
||||||
|
|
||||||
# call with an AttrSet of fs items:
|
# call with an AttrSet of fs items:
|
||||||
|
Reference in New Issue
Block a user