From 8794795cb90537d477d8a5998c88026f7c385f53 Mon Sep 17 00:00:00 2001 From: oo-infty Date: Fri, 9 Feb 2024 11:06:37 +0000 Subject: [PATCH] ugm: init at 1.4.0 CHANGELOG: --- pkgs/by-name/ug/ugm/package.nix | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/by-name/ug/ugm/package.nix diff --git a/pkgs/by-name/ug/ugm/package.nix b/pkgs/by-name/ug/ugm/package.nix new file mode 100644 index 000000000000..a8c1726327c8 --- /dev/null +++ b/pkgs/by-name/ug/ugm/package.nix @@ -0,0 +1,37 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, makeWrapper +}: + +buildGoModule rec { + pname = "ugm"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "ariasmn"; + repo = "ugm"; + rev = "v${version}"; + hash = "sha256-Co8JN0WEc1I08My9m7iyAshtEO4aszN8/sCvoGFJv2A="; + }; + + vendorHash = "sha256-34D9fQnmKnOyUqshduLmFiVgcVKi7mDKBs3X5ZQxsuw="; + + nativeBuildInputs = [ makeWrapper ]; + + # Fix unaligned table when running this program under a CJK environment + postFixup = '' + wrapProgram $out/bin/ugm \ + --set RUNEWIDTH_EASTASIAN 0 + ''; + + meta = with lib; { + description = "A terminal based UNIX user and group browser"; + homepage = "https://github.com/ariasmn/ugm"; + changelog = "https://github.com/ariasmn/ugm/releases/tag/${src.rev}"; + license = licenses.mit; + mainProgram = "ugm"; + platforms = platforms.linux; + maintainers = with maintainers; [ oo-infty ]; + }; +}