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";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "0.20.709";
|
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}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "Gx1VHjs37XBcvw20pQNrA/meLuVmogdGIzroRXvTv5Q=";
|
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
|
|
|
|
checkInputs = [ mono ];
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
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
|
|
|
}
|