nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 57 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 buildGoModule, 5 fetchFromGitHub, 6 installShellFiles, 7 makeWrapper, 8 pkg-config, 9 withGui ? true, 10 vte, 11}: 12 13buildGoModule rec { 14 pname = "orbiton"; 15 version = "2.70.0"; 16 17 src = fetchFromGitHub { 18 owner = "xyproto"; 19 repo = "orbiton"; 20 tag = "v${version}"; 21 hash = "sha256-3EAYPCNVQiED8qHyLbwyYU7gXJn2TFgiJ2/JyxyD7+M="; 22 }; 23 24 vendorHash = null; 25 26 nativeBuildInputs = [ 27 installShellFiles 28 makeWrapper 29 pkg-config 30 ]; 31 32 buildInputs = lib.optional withGui vte; 33 34 preBuild = "cd v2"; 35 36 checkFlags = [ 37 "-skip=TestPBcopy" # Requires impure pbcopy and pbpaste 38 ]; 39 40 postInstall = '' 41 cd .. 42 installManPage o.1 43 mv $out/bin/{orbiton,o} 44 '' 45 + lib.optionalString withGui '' 46 make install-gui PREFIX=$out 47 wrapProgram $out/bin/og --prefix PATH : $out/bin 48 ''; 49 50 meta = { 51 description = "Config-free text editor and IDE limited to VT100"; 52 homepage = "https://roboticoverlords.org/orbiton/"; 53 license = lib.licenses.bsd3; 54 maintainers = with lib.maintainers; [ sikmir ]; 55 mainProgram = "o"; 56 }; 57}