commit f618e35912ef22c234adc7ac835084fe2319c02e
parent 16b2548e01ca7b141d038cd644f4b9f134183c43
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 3 Jul 2022 00:09:04 +0300
Add o
Diffstat:
2 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -319,6 +319,7 @@ lib.makeScope newScope (
musig = callPackage ./misc/musig { };
nanodns = callPackage ./misc/nanodns { };
nmtree = callPackage ./misc/nmtree { };
+ o = callPackage ./misc/o { };
objlab = callPackage ./misc/objlab { };
playonmac = callPackage ./misc/playonmac { };
pnoise = callPackage ./misc/pnoise { };
diff --git a/pkgs/misc/o/default.nix b/pkgs/misc/o/default.nix
@@ -0,0 +1,31 @@
+{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
+
+buildGoModule rec {
+ pname = "o";
+ version = "2.53.0";
+
+ src = fetchFromGitHub {
+ owner = "xyproto";
+ repo = pname;
+ rev = "v${version}";
+ hash = "sha256-3tr0q/0xw/NHvicrY0ZB+7A1isSDVZhcuFpzFadW7Js=";
+ };
+
+ vendorSha256 = null;
+
+ nativeBuildInputs = [ installShellFiles ];
+
+ preBuild = "cd v2";
+
+ postInstall = ''
+ installManPage ../o.1
+ '';
+
+ meta = with lib; {
+ description = "Config-free text editor and IDE limited to VT100";
+ inherit (src.meta) homepage;
+ license = licenses.bsd3;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+}