mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
31 lines
893 B
Nix
31 lines
893 B
Nix
{ stdenv, fetchurl, mono, curl, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "jackett-${version}";
|
|
version = "0.10.250";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/Jackett/Jackett/releases/download/v${version}/Jackett.Binaries.Mono.tar.gz";
|
|
sha256 = "0695r03cgmiwrsjrcippiibpcahxb55pma5a6plcfl1f8jxiwv76";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|