3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/jackett/default.nix

31 lines
1,008 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, mono, makeWrapper, curl, icu60, openssl, zlib }:
stdenv.mkDerivation rec {
pname = "jackett";
2021-05-06 18:53:03 +01:00
version = "0.17.1027";
src = fetchurl {
url = "https://github.com/Jackett/Jackett/releases/download/v${version}/Jackett.Binaries.Mono.tar.gz";
2021-05-06 18:53:03 +01:00
sha256 = "sha256:1kmi4f1ghx82rfd8y4laggg8cs9apnhcdkakfi0mah7hqcnqmhm3";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/{bin,share/${pname}-${version}}
cp -r * $out/share/${pname}-${version}
makeWrapper "${mono}/bin/mono" $out/bin/Jackett \
--add-flags "$out/share/${pname}-${version}/JackettConsole.exe" \
2021-01-15 07:07:56 +00:00
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ curl icu60 openssl zlib ]}
'';
meta = with lib; {
description = "API Support for your favorite torrent trackers";
2020-03-05 20:01:19 +00:00
homepage = "https://github.com/Jackett/Jackett/";
license = licenses.gpl2Only;
2020-08-26 04:35:47 +01:00
maintainers = with maintainers; [ edwtjo nyanloutre purcell ];
platforms = platforms.all;
};
}