mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-09 07:13:03 +00:00
2a911454d3
Motivation: There is a thriving plugin ecosystem for Kakoune now, and it is nice to add these in our Nix configurations. This was modeled on neovim's plugins. parinfer-rust is useable both standalone and as a Kakoune plugin, so the plugin file inherits the same definition as pkgs. I'll make PRs for other plugins if this gets accepted. [Here](https://github.com/eraserhd/nixpkgs/tree/kak-ansi)'s a tested branch for the `kak-ansi` plugin.
36 lines
893 B
Nix
36 lines
893 B
Nix
{ stdenv, fetchFromGitHub, ncurses, asciidoc, docbook_xsl, libxslt, pkgconfig }:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kakoune-unwrapped";
|
|
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;
|
|
};
|
|
}
|