rename http-fstree => json-to-fstree
it works for file urls as well, not just http
This commit is contained in:
37
pkgs/json-to-fstree/default.nix
Normal file
37
pkgs/json-to-fstree/default.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
fetchurl,
|
||||
writeFennel,
|
||||
fennel,
|
||||
fennelrepl,
|
||||
runCommand,
|
||||
lua,
|
||||
anoia,
|
||||
linotify,
|
||||
lualinux,
|
||||
fetch-freebsd,
|
||||
openssl,
|
||||
rxi-json,
|
||||
stdenv
|
||||
}:
|
||||
let name = "json-to-fstree";
|
||||
in stdenv.mkDerivation {
|
||||
inherit name;
|
||||
src = ./.;
|
||||
|
||||
buildInputs = [fetch-freebsd rxi-json openssl lua];
|
||||
|
||||
buildPhase = "";
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -p ${writeFennel name {
|
||||
packages = [
|
||||
fetch-freebsd
|
||||
rxi-json
|
||||
anoia
|
||||
lualinux
|
||||
linotify
|
||||
] ;
|
||||
mainFunction = "run";
|
||||
} ./${name}.fnl } $out/bin/${name}
|
||||
'';
|
||||
}
|
Reference in New Issue
Block a user