nixpkgs/pkgs/servers/jackett/default.nix

31 lines
1,011 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, mono, makeWrapper, curl, icu60, openssl, zlib }:
stdenv.mkDerivation rec {
pname = "jackett";
2020-10-25 17:27:37 +01:00
version = "0.16.1883";
src = fetchurl {
url = "https://github.com/Jackett/Jackett/releases/download/v${version}/Jackett.Binaries.Mono.tar.gz";
2020-10-25 17:27:37 +01:00
sha256 = "1l16zzjyvwq6rd4q6dg4m0a81fiw50c7naksa43g3yhv7wg7wfll";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/{bin,share/${pname}-${version}}
cp -r * $out/share/${pname}-${version}
makeWrapper "${mono}/bin/mono" $out/bin/Jackett \
--add-flags "$out/share/${pname}-${version}/JackettConsole.exe" \
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ curl icu60 openssl zlib ]}
'';
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/";
license = licenses.gpl2;
2020-08-26 05:35:47 +02:00
maintainers = with maintainers; [ edwtjo nyanloutre purcell ];
platforms = platforms.all;
};
}