2017-03-25 21:18:34 +01:00
|
|
|
{ stdenv, fetchurl, mono, curl, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "jackett-${version}";
|
2018-06-18 22:56:22 +02:00
|
|
|
version = "0.8.1070";
|
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";
|
2018-06-18 22:56:22 +02:00
|
|
|
sha256 = "1xdmf1nvs1y8jhivmc0sw8cip925xrj8hg66z0awcymri6qnp6s9";
|
2017-03-25 21:18:34 +01: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;
|
|
|
|
};
|
|
|
|
}
|