2021-11-03 23:30:47 +00:00
|
|
|
{ lib
|
2021-12-20 21:45:51 +00:00
|
|
|
, stdenv
|
2021-11-03 23:30:47 +00:00
|
|
|
, buildDotnetModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, dotnetCorePackages
|
|
|
|
, openssl
|
2021-12-20 21:45:51 +00:00
|
|
|
, mono
|
2024-08-17 22:29:43 +00:00
|
|
|
, nixosTests
|
2021-11-03 23:30:47 +00:00
|
|
|
}:
|
2017-03-25 20:18:34 +00:00
|
|
|
|
2021-11-03 23:30:47 +00:00
|
|
|
buildDotnetModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "jackett";
|
2024-11-08 09:47:09 +00:00
|
|
|
version = "0.22.893";
|
2017-03-25 20:18:34 +00:00
|
|
|
|
2021-11-03 23:30:47 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-11-08 09:47:09 +00:00
|
|
|
hash = "sha512-W5Bmm426DOpnppP20a82ZwaUE9/HRUXXCKQUMK8TBgT1BUPPHykyW2Bew0u3U6NXXAX5EepyOb9lcidpBjN5RQ==";
|
2020-08-07 03:12:54 +00:00
|
|
|
};
|
2017-03-25 20:18:34 +00:00
|
|
|
|
2021-11-03 23:30:47 +00:00
|
|
|
projectFile = "src/Jackett.Server/Jackett.Server.csproj";
|
|
|
|
nugetDeps = ./deps.nix;
|
2017-03-25 20:18:34 +00:00
|
|
|
|
2024-11-08 09:47:09 +00:00
|
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
2021-12-20 21:45:51 +00:00
|
|
|
|
2024-11-08 09:47:09 +00:00
|
|
|
dotnetInstallFlags = [ "-p:TargetFramework=net8.0" ];
|
2019-09-13 15:37:51 +00:00
|
|
|
|
2021-11-03 23:30:47 +00:00
|
|
|
runtimeDeps = [ openssl ];
|
|
|
|
|
2021-12-20 21:45:51 +00:00
|
|
|
doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64); # mono is not available on aarch64-darwin
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ mono ];
|
2021-12-20 21:45:51 +00:00
|
|
|
testProjectFile = "src/Jackett.Test/Jackett.Test.csproj";
|
|
|
|
|
2021-11-03 23:30:47 +00:00
|
|
|
postFixup = ''
|
2021-12-20 21:45:51 +00:00
|
|
|
# For compatibility
|
|
|
|
ln -s $out/bin/jackett $out/bin/Jackett || :
|
|
|
|
ln -s $out/bin/Jackett $out/bin/jackett || :
|
2017-03-25 20:18:34 +00:00
|
|
|
'';
|
2022-08-18 21:44:02 +00:00
|
|
|
passthru.updateScript = ./updater.sh;
|
2017-03-25 20:18:34 +00:00
|
|
|
|
2024-08-17 22:29:43 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) jackett; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
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}";
|
2021-02-28 23:49:32 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-08-26 03:35:47 +00:00
|
|
|
maintainers = with maintainers; [ edwtjo nyanloutre purcell ];
|
2017-03-25 20:18:34 +00:00
|
|
|
};
|
|
|
|
}
|