{ stdenv, fetchFromGitHub, ncurses, asciidoc, docbook_xsl, libxslt, pkgconfig }: with stdenv.lib; stdenv.mkDerivation rec { name = "kakoune-unstable-${version}"; version = "2019.01.20"; src = fetchFromGitHub { repo = "kakoune"; owner = "mawww"; rev = "v${version}"; sha256 = "04ak1jm7b1i03sx10z3fxw08rn692y2fj482jn5kpzfzj91b2ila"; }; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ ncurses asciidoc docbook_xsl libxslt ]; makeFlags = [ "debug=no" ]; postPatch = '' export PREFIX=$out cd src sed -ie 's#--no-xmllint#--no-xmllint --xsltproc-opts="--nonet"#g' Makefile ''; preConfigure = '' export version="v${version}" ''; meta = { homepage = http://kakoune.org/; description = "A vim inspired text editor"; license = licenses.publicDomain; maintainers = with maintainers; [ vrthra ]; platforms = platforms.unix; }; }