Skip to content

Instantly share code, notes, and snippets.

@yorickvP
Created May 7, 2021 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yorickvP/0c74d944ef72d2a1eab449215f34dbd9 to your computer and use it in GitHub Desktop.
Save yorickvP/0c74d944ef72d2a1eab449215f34dbd9 to your computer and use it in GitHub Desktop.
# 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