Skip to content

Commit

Permalink
ugm: init at 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oo-infty committed Feb 9, 2024
1 parent bf5011e commit 8ec8402
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/by-name/ug/ugm/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ 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";
license = licenses.mit;
mainProgram = "ugm";
platforms = platforms.linux;
maintainers = with maintainers; [ oo-infty ];
};
}

0 comments on commit 8ec8402

Please sign in to comment.