nixpkgs/pkgs/servers/jackett/default.nix
Ryan Mulligan 5b98a269c6 jackett: 0.8.151 -> 0.8.716
Semi-automatic update. These checks were done:

- built on NixOS
- ran `/nix/store/j1arij5hyi6b28sg3hf08k4s81nz26bz-jackett-0.8.716/bin/Jackett -v` and found version 0.8.716
- found 0.8.716 with grep in /nix/store/j1arij5hyi6b28sg3hf08k4s81nz26bz-jackett-0.8.716
- found 0.8.716 in filename of file in /nix/store/j1arij5hyi6b28sg3hf08k4s81nz26bz-jackett-0.8.716
2018-03-08 20:22:29 -08:00

31 lines
892 B
Nix

{ stdenv, fetchurl, mono, curl, makeWrapper }:
stdenv.mkDerivation rec {
name = "jackett-${version}";
version = "0.8.716";
src = fetchurl {
url = "https://github.com/Jackett/Jackett/releases/download/v${version}/Jackett.Binaries.Mono.tar.gz";
sha256 = "0i770f4h06jf76977y3cp9l5n5csnb9wzpskndc7mgk0h02m7nrc";
};
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;
};
}