chore: vendor jackett package

This commit is contained in:
Julien Malka 2024-05-25 17:48:08 +02:00
parent 87e7f876a7
commit 11872885e0
Signed by: Luj
GPG key ID: 6FC74C847011FD83
2 changed files with 1460 additions and 0 deletions

View file

@ -0,0 +1,52 @@
{
lib,
stdenv,
buildDotnetModule,
fetchFromGitHub,
dotnetCorePackages,
openssl,
mono,
}:
buildDotnetModule rec {
pname = "jackett";
version = "0.21.2688";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
hash = "sha512-ofKCk1vWPbn3dFQ8qt7ieTXzkyFUoRGWsKGLpBZGEduX71aGX1M8wri27nt27FShb1Q7gVbGqUq6RHQI4bwnlQ==";
};
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 || :
'';
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
];
};
}

1408
packages/jackett/deps.nix Normal file

File diff suppressed because it is too large Load diff