1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 installShellFiles,
6}:
7
8buildGoModule rec {
9 pname = "moar";
10 version = "1.33.0";
11
12 src = fetchFromGitHub {
13 owner = "walles";
14 repo = "moar";
15 rev = "v${version}";
16 hash = "sha256-+06cup9iG+iMyluQPzUQ7vrnFHoeU4KNHGra3AsRRw0=";
17 };
18
19 vendorHash = "sha256-ComKeqnw1PvDaCRVXfInRjSzhyZWGkD/hp5piwhwxds=";
20
21 nativeBuildInputs = [ installShellFiles ];
22
23 postInstall = ''
24 installManPage ./moar.1
25 '';
26
27 ldflags = [
28 "-s"
29 "-w"
30 "-X"
31 "main.versionString=v${version}"
32 ];
33
34 meta = with lib; {
35 description = "Nice-to-use pager for humans";
36 homepage = "https://github.com/walles/moar";
37 license = licenses.bsd2WithViews;
38 mainProgram = "moar";
39 maintainers = with maintainers; [ foo-dogsquared ];
40 };
41}