2017-03-25 20:18:34 +00:00
|
|
|
{ stdenv, fetchurl, mono, curl, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "jackett-${version}";
|
2017-09-05 19:38:42 +00:00
|
|
|
version = "0.8.151";
|
2017-03-25 20:18:34 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Jackett/Jackett/releases/download/v${version}/Jackett.Binaries.Mono.tar.gz";
|
2017-09-05 19:38:42 +00:00
|
|
|
sha256 = "2df2b296b5b314ed035e8d370bf5708a8b5a23957353e2e1e0007ec08a2138a0";
|
2017-03-25 20:18:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{bin,share/${name}}
|
|
|
|
cp -r * $out/share/${name}
|
|
|
|
|
|
|
|
makeWrapper "${mono}/bin/mono" $out/bin/Jackett \
|
|
|
|
--add-flags "$out/share/${name}/JackettConsole.exe" \
|
|
|
|
--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;
|
|
|
|
};
|
|
|
|
}
|