Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
74 lines
1.9 KiB
Nix
74 lines
1.9 KiB
Nix
{
|
|
lib,
|
|
openssl,
|
|
git,
|
|
buildDotnetModule,
|
|
dotnetCorePackages,
|
|
fetchFromGitHub,
|
|
testers,
|
|
}:
|
|
buildDotnetModule (finalAttrs: {
|
|
pname = "recyclarr";
|
|
version = "7.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "recyclarr";
|
|
repo = "recyclarr";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-eutlnIHOcRnucgFDwJIheTPXA7avqvp4H0xUX2Cv2z8=";
|
|
};
|
|
|
|
projectFile = "Recyclarr.sln";
|
|
nugetDeps = ./deps.json;
|
|
|
|
prePatch = ''
|
|
substituteInPlace src/Recyclarr.Cli/Console/CliSetup.cs \
|
|
--replace-fail '$"v{GitVersionInformation.SemVer} ({GitVersionInformation.FullBuildMetaData})"' '"${finalAttrs.version}-nixpkgs"'
|
|
|
|
substituteInPlace src/Recyclarr.Cli/Console/Setup/ProgramInformationDisplayTask.cs \
|
|
--replace-fail 'GitVersionInformation.InformationalVersion' '"${finalAttrs.version}-nixpkgs"'
|
|
|
|
substituteInPlace Recyclarr.sln \
|
|
--replace-fail ".config\dotnet-tools.json = .config\dotnet-tools.json" ""
|
|
|
|
rm .config/dotnet-tools.json
|
|
'';
|
|
patches = [ ./001-Git-Version.patch ];
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
doCheck = false;
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_9_0;
|
|
dotnet-runtime = dotnetCorePackages.runtime_9_0;
|
|
dotnet-test-sdk = dotnetCorePackages.sdk_9_0;
|
|
|
|
executables = [ "recyclarr" ];
|
|
makeWrapperArgs = [
|
|
"--prefix PATH : ${
|
|
lib.makeBinPath [
|
|
git
|
|
openssl
|
|
]
|
|
}"
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = ./update.sh;
|
|
tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
|
|
};
|
|
|
|
meta = {
|
|
description = "Automatically sync TRaSH guides to your Sonarr and Radarr instances";
|
|
homepage = "https://recyclarr.dev/";
|
|
changelog = "https://github.com/recyclarr/recyclarr/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
josephst
|
|
aldoborrero
|
|
];
|
|
mainProgram = "recyclarr";
|
|
sourceProvenance = with lib.sourceTypes; [ fromSource ];
|
|
};
|
|
})
|