nixpkgs/pkgs/by-name/mo/moar/package.nix
2025-06-07 15:34:45 +00:00

41 lines
797 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
installShellFiles,
}:
buildGoModule rec {
pname = "moar";
version = "1.31.8";
src = fetchFromGitHub {
owner = "walles";
repo = "moar";
rev = "v${version}";
hash = "sha256-Ql2RWE8yttUSWZf4kJxv8l2lDBetJ7JB7W7A8GYVkyg=";
};
vendorHash = "sha256-J9u7LxzXk4npRyymmMKyN2ZTmhT4WwKjy0X5ITcHtoE=";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage ./moar.1
'';
ldflags = [
"-s"
"-w"
"-X"
"main.versionString=v${version}"
];
meta = with lib; {
description = "Nice-to-use pager for humans";
homepage = "https://github.com/walles/moar";
license = licenses.bsd2WithViews;
mainProgram = "moar";
maintainers = with maintainers; [ foo-dogsquared ];
};
}