Files
nixpkgs/pkgs/by-name/pa/patchy/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

43 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
nix-update-script,
versionCheckHook,
}:
let
version = "1.3.0";
in
rustPlatform.buildRustPackage {
pname = "patchy";
inherit version;
src = fetchFromGitHub {
owner = "nik-rev";
repo = "patchy";
tag = "v${version}";
hash = "sha256-7WAdfbnvsmaD8fMCJQ8dQenCDmLLxjVTj2DGcAhMxcg=";
};
cargoHash = "sha256-QaFIu7YVixQsDGL5fjQ3scKMyr0hw8lEWVc80EMTBB8=";
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Makes it easy to maintain personal forks";
longDescription = ''
Patchy makes it easy to declaratively manage personal forks by
automatically merging pull request of your liking to have more
features.
'';
homepage = "https://github.com/nik-rev/patchy";
changelog = "https://github.com/nik-rev/patchy/releases/tag/v${version}";
license = lib.licenses.mit;
mainProgram = "patchy";
maintainers = with lib.maintainers; [ louis-thevenet ];
};
}