nixpkgs-suyu/pkgs/servers/jackett/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, buildDotnetModule
, fetchFromGitHub
, dotnetCorePackages
, openssl
, mono
}:
buildDotnetModule rec {
pname = "jackett";
2022-03-16 03:45:51 +01:00
version = "0.20.709";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2022-03-16 03:45:51 +01:00
sha256 = "Gx1VHjs37XBcvw20pQNrA/meLuVmogdGIzroRXvTv5Q=";
};
projectFile = "src/Jackett.Server/Jackett.Server.csproj";
nugetDeps = ./deps.nix;
dotnet-sdk = dotnetCorePackages.sdk_6_0;
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
dotnetInstallFlags = [ "-p:TargetFramework=net6.0" ];
runtimeDeps = [ openssl ];
doCheck = !(stdenv.isDarwin && stdenv.isAarch64); # mono is not available on aarch64-darwin
checkInputs = [ mono ];
testProjectFile = "src/Jackett.Test/Jackett.Test.csproj";
postFixup = ''
# For compatibility
ln -s $out/bin/jackett $out/bin/Jackett || :
ln -s $out/bin/Jackett $out/bin/jackett || :
'';
meta = with lib; {
description = "API Support for your favorite torrent trackers";
2020-03-05 21:01:19 +01:00
homepage = "https://github.com/Jackett/Jackett/";
license = licenses.gpl2Only;
2020-08-26 05:35:47 +02:00
maintainers = with maintainers; [ edwtjo nyanloutre purcell ];
platforms = platforms.all;
};
passthru.updateScript = ./updater.sh;
}