Created
May 7, 2021 09:23
-
-
Save yorickvP/0c74d944ef72d2a1eab449215f34dbd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nix-build -E '((import <nixpkgs> {}).callPackage ./nix/onivim2.nix {})' | |
{ stdenv, lib, appimageTools, requireFile, autoPatchelfHook, makeWrapper, pango, cairo, gobject-introspection, glib, epoxy, libgpgerror, gdk-pixbuf, libxkbcommon, gtk3, ncurses5, acl, xorg, libGLU }: | |
stdenv.mkDerivation { | |
name = "Oni2"; | |
version = "0.5.9-nightly"; | |
dontStrip = true; | |
buildInputs = [ | |
autoPatchelfHook | |
pango | |
cairo | |
gobject-introspection | |
glib | |
epoxy | |
libgpgerror | |
gdk-pixbuf | |
libxkbcommon | |
gtk3 | |
ncurses5 | |
acl | |
libGLU | |
] ++ (with xorg; [ | |
libXinerama | |
libXt | |
libXi | |
libXrandr | |
libSM | |
libICE | |
libxkbfile | |
]); | |
nativeBuildInputs = [ makeWrapper ]; | |
src = appimageTools.extractType2 { | |
name = "onivim2"; | |
src = requireFile { | |
name = "Onivim2-x86_64-master.AppImage"; | |
sha256 = "czEH/GKljwC6t1YUKTsCI0KSLlcPoyuEQn3wTE1fpUw="; | |
url = "https://v2.onivim.io/early-access-portal"; | |
}; | |
}; | |
installPhase = '' | |
mkdir -p $out/bin | |
mv usr/bin $out/libexec | |
mv usr/share $out | |
mv EULA.md $out/libexec | |
mv ThirdPartyLicenses.txt $out/libexec | |
makeWrapper $out/libexec/Oni2 $out/bin/Oni2 | |
makeWrapper $out/libexec/Oni2_editor $out/bin/Oni2_editor | |
''; | |
meta = with lib; { | |
description = "Native, lightweight modal code editor"; | |
license = licenses.unfree; | |
homepage = "https://v2.onivim.io/"; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment