nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 5490cc3f6b568bbf0c96d76ac1fd25c52ca9c59a
parent 10ceab8dd373368582d540e595440ea136f2975f
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Thu,  1 Oct 2026 20:21:24 +0400

Up

Diffstat:
Mpkgs/by-name/re/revdiff/package.nix | 4++++
Mpkgs/by-name/re/revmux/package.nix | 4++--
Apkgs/by-name/st/stash/package.nix | 46++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 52 insertions(+), 2 deletions(-)

diff --git a/pkgs/by-name/re/revdiff/package.nix b/pkgs/by-name/re/revdiff/package.nix @@ -2,6 +2,7 @@ lib, buildGoModule, fetchFromGitHub, + installShellFiles, }: buildGoModule (finalAttrs: { @@ -24,10 +25,13 @@ buildGoModule (finalAttrs: { "-X main.revision=v${finalAttrs.version}" ]; + nativeBuildInputs = [ installShellFiles ]; + doCheck = false; postInstall = '' mv $out/bin/{app,revdiff} + installShellCompletion completions/* ''; meta = { diff --git a/pkgs/by-name/re/revmux/package.nix b/pkgs/by-name/re/revmux/package.nix @@ -6,7 +6,7 @@ buildGoModule (finalAttrs: { pname = "revmux"; - version = "0.2.5"; + version = "0.2.6"; __structuredAttrs = true; @@ -14,7 +14,7 @@ buildGoModule (finalAttrs: { owner = "umputun"; repo = "revmux"; tag = "v${finalAttrs.version}"; - hash = "sha256-NtuobTCc5Rf36u9jNy7fS01qVcfZgHsNpJLni9vvm4o="; + hash = "sha256-h5uBAnIJf/rpTkOC/k9ihyhjBc2j4VZfFv3tkhyXHBs="; }; vendorHash = null; diff --git a/pkgs/by-name/st/stash/package.nix b/pkgs/by-name/st/stash/package.nix @@ -0,0 +1,46 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + installShellFiles, +}: + +buildGoModule (finalAttrs: { + pname = "stash"; + version = "0.21.0"; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "umputun"; + repo = "stash"; + tag = "v${finalAttrs.version}"; + hash = "sha256-ltLn3k0HOxbCx37S271SS1ZmuySOK//lcG8vSwXklYk="; + }; + + vendorHash = null; + + subPackages = [ "app" ]; + + ldflags = [ + "-s" + "-X main.revision=v${finalAttrs.version}" + ]; + + nativeBuildInputs = [ installShellFiles ]; + + doCheck = false; + + postInstall = '' + mv $out/bin/{app,stash} + installShellCompletion completions/* + ''; + + meta = { + description = "Simple key-value configuration service"; + homepage = "https://github.com/umputun/stash"; + maintainers = with lib.maintainers; [ sikmir ]; + license = lib.licenses.mit; + mainProgram = "stash"; + }; +})