1{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2
3buildGoModule rec {
4 pname = "moar";
5 version = "1.23.15";
6
7 src = fetchFromGitHub {
8 owner = "walles";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256-tRjKBHsNJL66oz+0gZTrL8xFHQEyHLG+W35LHUYQKwU=";
12 };
13
14 vendorHash = "sha256-1u/2OlMX2FuZaxWnpU4n5r/4xKe+rK++GoCJiSq/BdE=";
15
16 nativeBuildInputs = [ installShellFiles ];
17
18 postInstall = ''
19 installManPage ./moar.1
20 '';
21
22 ldflags = [
23 "-s" "-w"
24 "-X" "main.versionString=v${version}"
25 ];
26
27 meta = with lib; {
28 description = "Nice-to-use pager for humans";
29 homepage = "https://github.com/walles/moar";
30 license = licenses.bsd2WithViews;
31 mainProgram = "moar";
32 maintainers = with maintainers; [ foo-dogsquared ];
33 };
34}