nixpkgs/pkgs/servers/jackett/default.nix
R. RyanTM 6afc071a6c jackett: 0.10.707 -> 0.10.846 (#56709)
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
2019-03-07 23:27:02 +01:00

31 lines
893 B
Nix

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