2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildDotnetModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, dotnetCorePackages
|
|
|
|
, openssl
|
|
|
|
}:
|
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";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.19.138";
|
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}";
|
|
|
|
sha256 = "0qaaccc95csahylzv65ndx990kcr075jffawbjpsjfkxzflfjq9n";
|
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-06 16:07:01 +00:00
|
|
|
dotnetInstallFlags = [ "-p:TargetFramework=net5.0" ];
|
|
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_5_0;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
runtimeDeps = [ openssl ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
# Legacy
|
|
|
|
ln -s $out/bin/jackett $out/bin/Jackett
|
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/";
|
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 ];
|
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
passthru.updateScript = ./updater.sh;
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|