2022-11-21 17:40:18 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "moar";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.18.4";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "walles";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-zF+Hnsmw5TJCYYoItrwcnyh3NSmKrV9JoTPwTMVyw7Y=";
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
vendorHash = "sha256-x6BeU6JDayCOi8T8+NvXZe59QmTaO9RAYwSiFlDPL/c=";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage ./moar.1
|
|
|
|
'';
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w"
|
|
|
|
"-X" "main.versionString=v${version}"
|
|
|
|
];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Nice-to-use pager for humans";
|
|
|
|
homepage = "https://github.com/walles/moar";
|
|
|
|
license = licenses.bsd2WithViews;
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "moar";
|
2022-11-21 17:40:18 +00:00
|
|
|
maintainers = with maintainers; [ foo-dogsquared ];
|
|
|
|
};
|
|
|
|
}
|