Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
67 lines
1.6 KiB
Nix
67 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildDotnetModule,
|
|
fetchFromGitHub,
|
|
dotnetCorePackages,
|
|
openssl,
|
|
mono,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildDotnetModule rec {
|
|
pname = "jackett";
|
|
version = "0.22.2390";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha512-Viz9gU16NG6nYeEwhar3OCSPnsHrM6ZehsOcNxteaGyvgrhbyWt5rNI54wCJ7OngHaZgIoQhMoNNkvIhX8JDUg==";
|
|
};
|
|
|
|
projectFile = "src/Jackett.Server/Jackett.Server.csproj";
|
|
nugetDeps = ./deps.json;
|
|
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
|
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
|
|
|
dotnetInstallFlags = [
|
|
"--framework"
|
|
"net8.0"
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace ${projectFile} ${testProjectFile} \
|
|
--replace-fail '<TargetFrameworks>net8.0;net462</' '<TargetFrameworks>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";
|
|
mainProgram = "jackett";
|
|
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
|
|
];
|
|
};
|
|
}
|