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