2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
2021-12-24 04:21:11 +00:00
|
|
|
, stdenv
|
2021-12-06 16:07:01 +00:00
|
|
|
, buildDotnetModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, dotnetCorePackages
|
|
|
|
, openssl
|
2021-12-24 04:21:11 +00:00
|
|
|
, mono
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildDotnetModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "jackett";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.21.1588";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha512-HJSim0I7hLZqJIKU4GoGFQEPY8w9SWp6MxfAxDHuklWKn1dvoQBWh83s8aEz3VOGHXj+SvqciA0o5rWL23camA==";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
projectFile = "src/Jackett.Server/Jackett.Server.csproj";
|
|
|
|
nugetDeps = ./deps.nix;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
|
|
|
|
|
|
|
|
dotnetInstallFlags = [ "-p:TargetFramework=net6.0" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
runtimeDeps = [ openssl ];
|
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
doCheck = !(stdenv.isDarwin && stdenv.isAarch64); # mono is not available on aarch64-darwin
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ mono ];
|
2021-12-24 04:21:11 +00:00
|
|
|
testProjectFile = "src/Jackett.Test/Jackett.Test.csproj";
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
postFixup = ''
|
2021-12-24 04:21:11 +00:00
|
|
|
# For compatibility
|
|
|
|
ln -s $out/bin/jackett $out/bin/Jackett || :
|
|
|
|
ln -s $out/bin/Jackett $out/bin/jackett || :
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2022-09-14 18:05:37 +00:00
|
|
|
passthru.updateScript = ./updater.sh;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "API Support for your favorite torrent trackers";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Jackett/Jackett/";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/Jackett/Jackett/releases/tag/v${version}";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ edwtjo nyanloutre purcell ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|