2019-09-13 17:37:51 +02:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, curl, icu60, openssl, zlib }:
|
2017-03-25 21:18:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "jackett";
|
2020-04-01 15:21:53 +02:00
|
|
|
version = "0.14.365";
|
2017-03-25 21:18:34 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-09-13 17:37:51 +02:00
|
|
|
url = "https://github.com/Jackett/Jackett/releases/download/v${version}/Jackett.Binaries.LinuxAMDx64.tar.gz";
|
2020-04-01 15:21:53 +02:00
|
|
|
sha256 = "0xvlknjhc75km12d8li50ifqpfyl6whymb6gd7ccwyd9lv9xxm27";
|
2017-03-25 21:18:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-09-13 17:37:51 +02:00
|
|
|
mkdir -p $out/{bin,opt/${pname}-${version}}
|
|
|
|
cp -r * $out/opt/${pname}-${version}
|
2017-03-25 21:18:34 +01:00
|
|
|
|
2019-09-13 17:37:51 +02:00
|
|
|
makeWrapper "$out/opt/${pname}-${version}/jackett" $out/bin/Jackett \
|
|
|
|
--prefix LD_LIBRARY_PATH ':' "${curl.out}/lib:${icu60.out}/lib:${openssl.out}/lib:${zlib.out}/lib"
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = let
|
|
|
|
libPath = lib.makeLibraryPath [
|
|
|
|
stdenv.cc.cc.lib # libstdc++.so.6
|
|
|
|
];
|
|
|
|
in ''
|
|
|
|
patchelf \
|
|
|
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
|
|
--set-rpath "${libPath}" \
|
|
|
|
$out/opt/${pname}-${version}/jackett
|
2017-03-25 21:18:34 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "API Support for your favorite torrent trackers.";
|
2020-03-05 21:01:19 +01:00
|
|
|
homepage = "https://github.com/Jackett/Jackett/";
|
2017-03-25 21:18:34 +01:00
|
|
|
license = licenses.gpl2;
|
2019-09-13 17:37:51 +02:00
|
|
|
maintainers = with maintainers; [ edwtjo nyanloutre ];
|
2020-03-09 21:49:24 +01:00
|
|
|
platforms = platforms.linux;
|
2017-03-25 21:18:34 +01:00
|
|
|
};
|
|
|
|
}
|