23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildDotnetModule
|
|
, fetchFromGitHub
|
|
, dotnetCorePackages
|
|
, openssl
|
|
, mono
|
|
}:
|
|
|
|
buildDotnetModule rec {
|
|
pname = "jackett";
|
|
version = "0.21.1588";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha512-HJSim0I7hLZqJIKU4GoGFQEPY8w9SWp6MxfAxDHuklWKn1dvoQBWh83s8aEz3VOGHXj+SvqciA0o5rWL23camA==";
|
|
};
|
|
|
|
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";
|
|
homepage = "https://github.com/Jackett/Jackett/";
|
|
changelog = "https://github.com/Jackett/Jackett/releases/tag/v${version}";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ edwtjo nyanloutre purcell ];
|
|
};
|
|
}
|