Merge pull request #184506 from sikmir/o
This commit is contained in:
commit
6a91c39cf8
2 changed files with 45 additions and 0 deletions
43
pkgs/applications/editors/o/default.nix
Normal file
43
pkgs/applications/editors/o/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{ lib, stdenv, buildGoModule, fetchFromGitHub, installShellFiles, makeWrapper, pkg-config
|
||||||
|
, tcsh
|
||||||
|
, withGui ? stdenv.isLinux, vte # vte is broken on darwin
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "o";
|
||||||
|
version = "2.55.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "xyproto";
|
||||||
|
repo = "o";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-owueLd6kR/bDFxKI9QOUgriH63XRsEEpIFfp5aRTSbI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace ko/main.cpp --replace '/bin/csh' '${tcsh}/bin/tcsh'
|
||||||
|
'';
|
||||||
|
|
||||||
|
vendorSha256 = null;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles makeWrapper pkg-config ];
|
||||||
|
|
||||||
|
buildInputs = lib.optional withGui vte;
|
||||||
|
|
||||||
|
preBuild = "cd v2";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
cd ..
|
||||||
|
installManPage o.1
|
||||||
|
'' + lib.optionalString withGui ''
|
||||||
|
make install-gui PREFIX=$out
|
||||||
|
wrapProgram $out/bin/ko --prefix PATH : $out/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Config-free text editor and IDE limited to VT100";
|
||||||
|
homepage = "https://github.com/xyproto/o";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ sikmir ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -26829,6 +26829,8 @@ with pkgs;
|
||||||
|
|
||||||
edbrowse = callPackage ../applications/editors/edbrowse { };
|
edbrowse = callPackage ../applications/editors/edbrowse { };
|
||||||
|
|
||||||
|
o = callPackage ../applications/editors/o { };
|
||||||
|
|
||||||
oed = callPackage ../applications/editors/oed { };
|
oed = callPackage ../applications/editors/oed { };
|
||||||
|
|
||||||
ekho = callPackage ../applications/audio/ekho { };
|
ekho = callPackage ../applications/audio/ekho { };
|
||||||
|
|
Loading…
Reference in a new issue