Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
installShellFiles,
makeWrapper,
pkg-config,
withGui ? true,
vte,
}:
buildGoModule rec {
pname = "orbiton";
version = "2.70.0";
src = fetchFromGitHub {
owner = "xyproto";
repo = "orbiton";
tag = "v${version}";
hash = "sha256-3EAYPCNVQiED8qHyLbwyYU7gXJn2TFgiJ2/JyxyD7+M=";
};
vendorHash = null;
nativeBuildInputs = [
installShellFiles
makeWrapper
pkg-config
];
buildInputs = lib.optional withGui vte;
preBuild = "cd v2";
checkFlags = [
"-skip=TestPBcopy" # Requires impure pbcopy and pbpaste
];
postInstall = ''
cd ..
installManPage o.1
mv $out/bin/{orbiton,o}
''
+ lib.optionalString withGui ''
make install-gui PREFIX=$out
wrapProgram $out/bin/og --prefix PATH : $out/bin
'';
meta = {
description = "Config-free text editor and IDE limited to VT100";
homepage = "https://roboticoverlords.org/orbiton/";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ sikmir ];
mainProgram = "o";
};
}