nixpkgs/pkgs/applications/editors/kakoune/default.nix

35 lines
953 B
Nix
Raw Normal View History

2016-07-27 19:02:24 +01:00
{ stdenv, fetchFromGitHub, ncurses, boost, asciidoc, docbook_xsl, libxslt }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "kakoune-nightly-${version}";
2017-02-10 22:06:28 +00:00
version = "2017-02-09";
2016-07-27 19:02:24 +01:00
src = fetchFromGitHub {
repo = "kakoune";
owner = "mawww";
2017-02-10 22:06:28 +00:00
rev = "9ba1665e58ee84b6596d89e6ef75f7c32e7c6c14";
sha256 = "1l25mzq64a481qlsyh25rzp5rzajrkx4dq29677z85lnjqn30wbi";
2016-07-27 19:02:24 +01:00
};
buildInputs = [ ncurses boost asciidoc docbook_xsl libxslt ];
buildPhase = ''
sed -ie 's#--no-xmllint#--no-xmllint --xsltproc-opts="--nonet"#g' src/Makefile
substituteInPlace src/Makefile --replace "boost_regex-mt" "boost_regex"
2016-07-27 19:02:24 +01:00
export PREFIX=$out
(cd src && make )
'';
installPhase = ''
(cd src && make install)
'';
meta = {
homepage = http://kakoune.org/;
description = "A vim inspired text editor";
license = licenses.publicDomain;
maintainers = with maintainers; [ vrthra ];
platforms = platforms.unix;
2016-07-27 19:02:24 +01:00
};
}