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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
779 B
Nix
Raw Normal View History

2022-11-15 04:06:12 +00:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "moar";
2023-10-14 11:06:24 +01:00
version = "1.18.1";
2022-11-15 04:06:12 +00:00
src = fetchFromGitHub {
owner = "walles";
repo = pname;
rev = "v${version}";
2023-10-14 11:06:24 +01:00
hash = "sha256-E0wJ0P4ofkfKU6HKEZ+D6fT7EMKlHrGioEMJPi9T+9E=";
2022-11-15 04:06:12 +00:00
};
2023-03-21 08:21:28 +00:00
vendorHash = "sha256-aFCv6VxHD1bOLhCHXhy4ubik8Z9uvU6AeqcMqIZI2Oo=";
2022-11-15 04:06:12 +00:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage ./moar.1
'';
ldflags = [
"-s" "-w"
"-X" "main.versionString=v${version}"
];
2022-11-15 04:06:12 +00:00
meta = with lib; {
description = "Nice-to-use pager for humans";
homepage = "https://github.com/walles/moar";
license = licenses.bsd2WithViews;
2023-09-30 09:06:44 +01:00
mainProgram = "moar";
2022-11-15 04:06:12 +00:00
maintainers = with maintainers; [ foo-dogsquared ];
};
}