nixpkgs/pkgs/by-name/ug/ugm/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
979 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
, makeWrapper
2024-04-13 12:55:47 +02:00
, nix-update-script
}:
buildGoModule rec {
pname = "ugm";
2024-04-13 12:57:31 +02:00
version = "1.5.0";
src = fetchFromGitHub {
owner = "ariasmn";
repo = "ugm";
rev = "v${version}";
2024-04-13 12:57:31 +02:00
hash = "sha256-Ui/JYU/ZbMP8E20vWHah1GFFVu5E4xf0RaVv9X0QnR4=";
};
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
'';
2024-04-13 12:55:47 +02:00
passthru.updateScript = nix-update-script {};
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 ];
};
}