about summary refs log tree commit diff
path: root/pkgs/tools/misc/moar
diff options
context:
space:
mode:
authorGabriel Arazas <foo.dogsquared@gmail.com>2022-11-15 12:06:12 +0800
committerGabriel Arazas <foo.dogsquared@gmail.com>2022-11-16 12:01:56 +0800
commitca7fcd72f41ce1363cf7326bf929319c976ab5ea (patch)
treec6ec9f841b377a842e0ee563e1c2a035e801a420 /pkgs/tools/misc/moar
parent62b78d1eade02c63a8df938ede8b13e3ea581e63 (diff)
moar: init at 1.10.0
Diffstat (limited to 'pkgs/tools/misc/moar')
-rw-r--r--pkgs/tools/misc/moar/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/misc/moar/default.nix b/pkgs/tools/misc/moar/default.nix
new file mode 100644
index 0000000000000..bea127acb008f
--- /dev/null
+++ b/pkgs/tools/misc/moar/default.nix
@@ -0,0 +1,28 @@
+{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
+
+buildGoModule rec {
+  pname = "moar";
+  version = "1.10.0";
+
+  src = fetchFromGitHub {
+    owner = "walles";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-cFXUspVSCUy0q5CW8K+YL/LBpK87qlPys8hg6AYvg5M=";
+  };
+
+  vendorSha256 = "sha256-RfkY66879Us0UudplMzW8xEC1zs+2OXwyB+nBim3I0I=";
+
+  nativeBuildInputs = [ installShellFiles ];
+
+  postInstall = ''
+    installManPage ./moar.1
+  '';
+
+  meta = with lib; {
+    description = "Nice-to-use pager for humans";
+    homepage = "https://github.com/walles/moar";
+    license = licenses.bsd2WithViews;
+    maintainers = with maintainers; [ foo-dogsquared ];
+  };
+}