2017-03-25 21:18:34 +01:00
|
|
|
{ stdenv, fetchurl, mono, curl, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "jackett";
|
2019-08-19 14:47:12 +02:00
|
|
|
version = "0.11.589";
|
2017-03-25 21:18:34 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Jackett/Jackett/releases/download/v${version}/Jackett.Binaries.Mono.tar.gz";
|
2019-08-19 14:47:12 +02:00
|
|
|
sha256 = "14lj33xmhf35pq781wvzyw983yff447mc253x0ppi3b5rwkrgkyz";
|
2017-03-25 21:18:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-08-15 14:41:18 +02:00
|
|
|
mkdir -p $out/{bin,share/${pname}-${version}}
|
|
|
|
cp -r * $out/share/${pname}-${version}
|
2017-03-25 21:18:34 +01:00
|
|
|
|
|
|
|
makeWrapper "${mono}/bin/mono" $out/bin/Jackett \
|
2019-08-15 14:41:18 +02:00
|
|
|
--add-flags "$out/share/${pname}-${version}/JackettConsole.exe" \
|
2017-03-25 21:18:34 +01:00
|
|
|
--prefix LD_LIBRARY_PATH ':' "${curl.out}/lib"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "API Support for your favorite torrent trackers.";
|
|
|
|
homepage = https://github.com/Jackett/Jackett/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|