1 { lib, stdenv, buildGoModule, fetchFromGitHub, installShellFiles, makeWrapper, pkg-config
9 src = fetchFromGitHub {
13 hash = "sha256-1KVw2dj//6vwUUj1jVWe2J/9F6J8BQsvCAEbJZnW26c=";
18 postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
19 substituteInPlace Makefile \
20 --replace "-Wl,--as-needed" ""
22 # Requires impure pbcopy and pbpaste
23 substituteInPlace v2/pbcopy_test.go \
24 --replace TestPBcopy SkipTestPBcopy
27 nativeBuildInputs = [ installShellFiles makeWrapper pkg-config ];
29 buildInputs = lib.optional withGui vte;
36 mv $out/bin/{orbiton,o}
37 '' + lib.optionalString withGui ''
38 make install-gui PREFIX=$out
39 wrapProgram $out/bin/og --prefix PATH : $out/bin
43 description = "Config-free text editor and IDE limited to VT100";
44 homepage = "https://orbiton.zip";
45 license = licenses.bsd3;
46 maintainers = with maintainers; [ sikmir ];