nixpkgs/pkgs/servers/jackett/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, buildDotnetModule
, fetchFromGitHub
, dotnetCorePackages
, openssl
, mono
}:
buildDotnetModule rec {
pname = "jackett";
2023-04-01 04:40:37 +00:00
version = "0.20.3723";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2023-04-01 04:40:37 +00:00
hash = "sha512-Uh/lOBYzE7r4qCTIZbiegWOuqoxvq8W9EWxeh2enWEfkWke7APgAxC6myDNWpmduaPIBSIRJNvhwxaHVykVXvA==";
};
projectFile = "src/Jackett.Server/Jackett.Server.csproj";
nugetDeps = ./deps.nix;
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
dotnetInstallFlags = [ "-p:TargetFramework=net6.0" ];
runtimeDeps = [ openssl ];
doCheck = !(stdenv.isDarwin && stdenv.isAarch64); # mono is not available on aarch64-darwin
nativeCheckInputs = [ mono ];
testProjectFile = "src/Jackett.Test/Jackett.Test.csproj";
postFixup = ''
# For compatibility
ln -s $out/bin/jackett $out/bin/Jackett || :
ln -s $out/bin/Jackett $out/bin/jackett || :
'';
passthru.updateScript = ./updater.sh;
meta = with lib; {
description = "API Support for your favorite torrent trackers";
2020-03-05 20:01:19 +00:00
homepage = "https://github.com/Jackett/Jackett/";
2023-02-21 22:17:11 +00:00
changelog = "https://github.com/Jackett/Jackett/releases/tag/v${version}";
license = licenses.gpl2Only;
2020-08-26 03:35:47 +00:00
maintainers = with maintainers; [ edwtjo nyanloutre purcell ];
};
}