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