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 05:06:12 +01:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "moar";
2024-01-20 03:04:51 +01:00
version = "1.23.0";
2022-11-15 05:06:12 +01:00
src = fetchFromGitHub {
owner = "walles";
repo = pname;
rev = "v${version}";
2024-01-20 03:04:51 +01:00
hash = "sha256-tnFJKHrK1QlACYsiLlc5EX3du4H+nekEaeV+7wUsx48=";
2022-11-15 05:06:12 +01:00
};
2024-01-10 10:59:38 +01:00
vendorHash = "sha256-1u/2OlMX2FuZaxWnpU4n5r/4xKe+rK++GoCJiSq/BdE=";
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;
2023-09-30 10:06:44 +02:00
mainProgram = "moar";
2022-11-15 05:06:12 +01:00
maintainers = with maintainers; [ foo-dogsquared ];
};
}