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
|
|
|
|
'';
|
|
|
|
|
2022-11-27 08:13:07 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|