nixpkgs-suyu/pkgs/servers/jackett/default.nix
R. RyanTM e52ac55e9c jackett: 0.8.1070 -> 0.8.1138
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/qrcg5rrhydf0622l7s9m8n87x2w2az2j-jackett-0.8.1138/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.1138 with grep in /nix/store/qrcg5rrhydf0622l7s9m8n87x2w2az2j-jackett-0.8.1138
- directory tree listing: https://gist.github.com/59f09486090429273b9aa0822ca9440e
- du listing: https://gist.github.com/d25094cef4e9313932610108d54d6128
2018-06-23 21:34:02 -07:00

30 lines
893 B
Nix

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