mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
31 lines
1011 B
Nix
31 lines
1011 B
Nix
{ lib, stdenv, fetchurl, mono, makeWrapper, curl, icu60, openssl, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "jackett";
|
|
version = "0.16.2131";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/Jackett/Jackett/releases/download/v${version}/Jackett.Binaries.Mono.tar.gz";
|
|
sha256 = "1689w80cjji7wq1x3sgkpmx0n543mqkzvhb3hdmz6f66h479hcpk";
|
|
};
|
|
|
|
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";
|
|
homepage = "https://github.com/Jackett/Jackett/";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ edwtjo nyanloutre purcell ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|