nixpkgs/pkgs/servers/jackett/default.nix

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

54 lines
1.4 KiB
Nix
Raw Permalink Normal View History

{ lib
, stdenv
, buildDotnetModule
, fetchFromGitHub
, dotnetCorePackages
, openssl
, mono
, nixosTests
}:
buildDotnetModule rec {
pname = "jackett";
2024-11-08 09:47:09 +00:00
version = "0.22.893";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2024-11-08 09:47:09 +00:00
hash = "sha512-W5Bmm426DOpnppP20a82ZwaUE9/HRUXXCKQUMK8TBgT1BUPPHykyW2Bew0u3U6NXXAX5EepyOb9lcidpBjN5RQ==";
};
projectFile = "src/Jackett.Server/Jackett.Server.csproj";
nugetDeps = ./deps.nix;
2024-11-08 09:47:09 +00:00
dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
dotnet-sdk = dotnetCorePackages.sdk_8_0;
2024-11-08 09:47:09 +00:00
dotnetInstallFlags = [ "-p:TargetFramework=net8.0" ];
runtimeDeps = [ openssl ];
doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.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;
passthru.tests = { inherit (nixosTests) jackett; };
meta = with lib; {
description = "API Support for your favorite torrent trackers";
2024-10-12 18:50:34 +00:00
mainProgram = "jackett";
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 ];
};
}