nixpkgs/pkgs/tools/misc/moar/default.nix

34 lines
755 B
Nix
Raw Normal View History

2022-11-15 05:06:12 +01:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "moar";
2023-05-04 12:57:09 +02:00
version = "1.14.0";
2022-11-15 05:06:12 +01:00
src = fetchFromGitHub {
owner = "walles";
repo = pname;
rev = "v${version}";
2023-05-04 12:57:09 +02:00
sha256 = "sha256-fpUfIKDKjIHkMWzv0ZWb0mYuDDj2j7AyaiM9+LlVmPA=";
2022-11-15 05:06:12 +01:00
};
2023-03-21 09:21:28 +01:00
vendorHash = "sha256-aFCv6VxHD1bOLhCHXhy4ubik8Z9uvU6AeqcMqIZI2Oo=";
2022-11-15 05:06:12 +01:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage ./moar.1
'';
ldflags = [
"-s" "-w"
"-X" "main.versionString=v${version}"
];
2022-11-15 05:06:12 +01:00
meta = with lib; {
description = "Nice-to-use pager for humans";
homepage = "https://github.com/walles/moar";
license = licenses.bsd2WithViews;
maintainers = with maintainers; [ foo-dogsquared ];
};
}