From e42aef481830b9bd068380efc0041075238dab8b Mon Sep 17 00:00:00 2001 From: Louis Thevenet Date: Fri, 10 Jan 2025 18:18:05 +0100 Subject: [PATCH] patchy: init at 1.2.7 --- pkgs/by-name/pa/patchy/package.nix | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/pa/patchy/package.nix diff --git a/pkgs/by-name/pa/patchy/package.nix b/pkgs/by-name/pa/patchy/package.nix new file mode 100644 index 000000000000..bdc1092408f5 --- /dev/null +++ b/pkgs/by-name/pa/patchy/package.nix @@ -0,0 +1,41 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + nix-update-script, + versionCheckHook, +}: +let + version = "1.2.7"; +in +rustPlatform.buildRustPackage { + pname = "patchy"; + inherit version; + + src = fetchFromGitHub { + owner = "nik-rev"; + repo = "patchy"; + tag = "v${version}"; + hash = "sha256-Npb+qcguxZAvWggJC5NtxCeUCU/nOtjCbK5gfkDTkfw="; + }; + cargoHash = "sha256-vtKIDmfKSSZjorIGQ13OYrdmzabS5//j2/n7kJC9O7k="; + + 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 ]; + }; +}