diff options
author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2023-12-02 02:04:40 +0100 |
---|---|---|
committer | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2023-12-02 02:04:40 +0100 |
commit | 9a16042cc362ee729922651c444b94110c16760d (patch) | |
tree | 730b50d663f260bf9cbb9e29e744d836888d2b3d /pkgs/build-support | |
parent | e47087ddbed7b0dfe3783011ff6f0b576b12350c (diff) |
fetchtorrent: add `meta` support
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/fetchtorrent/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchtorrent/default.nix b/pkgs/build-support/fetchtorrent/default.nix index beb2415df707b..126748678bf25 100644 --- a/pkgs/build-support/fetchtorrent/default.nix +++ b/pkgs/build-support/fetchtorrent/default.nix @@ -14,6 +14,7 @@ in , recursiveHash ? true , postFetch ? "" , postUnpack ? "" +, meta ? {} }: let afterSuccess = writeShellScript "fetch-bittorrent-done.sh" '' @@ -30,6 +31,7 @@ let jsonConfig = (formats.json {}).generate "jsonConfig" config; in 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"); outputHashAlgo = if hash != "" then null else "sha256"; outputHash = hash; |