nixpkgs/pkgs/servers/jackett/default.nix
R. RyanTM 53ef7f0c81 jackett: 0.8.1138 -> 0.8.1209 (#42999)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/jackett/versions.

These checks were done:

- built on NixOS
- /nix/store/hlpqjm3nia27yrsvss57828qla6a1x5m-jackett-0.8.1209/bin/Jackett passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 0.8.1209 with grep in /nix/store/hlpqjm3nia27yrsvss57828qla6a1x5m-jackett-0.8.1209
- directory tree listing: https://gist.github.com/73cb9952f51705ba06c4c820c3466ffa
- du listing: https://gist.github.com/c6920225e6de6c9be6afa6799f4b17d6
2018-07-09 00:03:51 +02:00

31 lines
893 B
Nix

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