mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
40 lines
977 B
Nix
40 lines
977 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, nix-update-script
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "ugm";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ariasmn";
|
|
repo = "ugm";
|
|
rev = "v${version}";
|
|
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
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script {};
|
|
|
|
meta = with lib; {
|
|
description = "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 ];
|
|
};
|
|
}
|