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