2020-08-07 03:12:54 +00:00
|
|
|
{ lib, stdenv, fetchurl, mono, makeWrapper, curl, icu60, openssl, zlib }:
|
2017-03-25 20:18:34 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "jackett";
|
2021-06-20 09:48:08 +00:00
|
|
|
version = "0.18.364";
|
2017-03-25 20:18:34 +00:00
|
|
|
|
2020-08-07 03:12:54 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Jackett/Jackett/releases/download/v${version}/Jackett.Binaries.Mono.tar.gz";
|
2021-06-20 09:48:08 +00:00
|
|
|
sha256 = "sha256-QcwrgW07tP0PxA6UWqMf7VT0Y8uBZFJY9Uz7seorEfs=";
|
2020-08-07 03:12:54 +00:00
|
|
|
};
|
2017-03-25 20:18:34 +00:00
|
|
|
|
2020-08-07 03:12:54 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2017-03-25 20:18:34 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2020-08-07 03:12:54 +00:00
|
|
|
mkdir -p $out/{bin,share/${pname}-${version}}
|
|
|
|
cp -r * $out/share/${pname}-${version}
|
2019-09-13 15:37:51 +00:00
|
|
|
|
2020-08-07 03:12:54 +00:00
|
|
|
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 ]}
|
2017-03-25 20:18:34 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "API Support for your favorite torrent trackers";
|
2020-03-05 20:01:19 +00:00
|
|
|
homepage = "https://github.com/Jackett/Jackett/";
|
2021-02-28 23:49:32 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-08-26 03:35:47 +00:00
|
|
|
maintainers = with maintainers; [ edwtjo nyanloutre purcell ];
|
2020-08-07 03:12:54 +00:00
|
|
|
platforms = platforms.all;
|
2017-03-25 20:18:34 +00:00
|
|
|
};
|
|
|
|
}
|