fetchtorrent: add meta
support
This commit is contained in:
parent
e47087ddbe
commit
9a16042cc3
@ -14,6 +14,7 @@ in
|
|||||||
, recursiveHash ? true
|
, recursiveHash ? true
|
||||||
, postFetch ? ""
|
, postFetch ? ""
|
||||||
, postUnpack ? ""
|
, postUnpack ? ""
|
||||||
|
, meta ? {}
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
afterSuccess = writeShellScript "fetch-bittorrent-done.sh" ''
|
afterSuccess = writeShellScript "fetch-bittorrent-done.sh" ''
|
||||||
@ -30,6 +31,7 @@ let
|
|||||||
jsonConfig = (formats.json {}).generate "jsonConfig" config;
|
jsonConfig = (formats.json {}).generate "jsonConfig" config;
|
||||||
in
|
in
|
||||||
runCommand name {
|
runCommand name {
|
||||||
|
inherit meta;
|
||||||
nativeBuildInputs = [ cacert ] ++ (if (backend == "transmission" ) then [ transmission_noSystemd ] else if (backend == "rqbit") then [ rqbit ] else throw "rqbit or transmission are the only available backends for fetchtorrent");
|
nativeBuildInputs = [ cacert ] ++ (if (backend == "transmission" ) then [ transmission_noSystemd ] else if (backend == "rqbit") then [ rqbit ] else throw "rqbit or transmission are the only available backends for fetchtorrent");
|
||||||
outputHashAlgo = if hash != "" then null else "sha256";
|
outputHashAlgo = if hash != "" then null else "sha256";
|
||||||
outputHash = hash;
|
outputHash = hash;
|
||||||
|
Loading…
Reference in New Issue
Block a user