2018-05-16 07:30:45 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, emacs, libvterm-neovim }:
|
2018-05-16 06:56:13 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
emacsSources = stdenv.mkDerivation {
|
|
|
|
name = emacs.name + "-sources";
|
|
|
|
src = emacs.src;
|
|
|
|
|
|
|
|
configurePhase = ":";
|
|
|
|
dontBuild = true;
|
|
|
|
doCheck = false;
|
|
|
|
fixupPhase = ":";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp -a * $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "emacs-libvterm-${version}";
|
2018-11-18 19:45:42 +00:00
|
|
|
version = "unstable-2018-11-16";
|
2018-05-16 06:56:13 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "akermu";
|
|
|
|
repo = "emacs-libvterm";
|
2018-11-18 19:45:42 +00:00
|
|
|
rev = "8be9316156be75a685c0636258b2fec2daaf5ab5";
|
|
|
|
sha256 = "059js4aa7xgqcpaicgy4gz683hppa1iyp1r98mnms5hd31a304k8";
|
2018-05-16 06:56:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-05-16 07:30:45 +01:00
|
|
|
buildInputs = [ emacs libvterm-neovim ];
|
2018-05-16 06:56:13 +01:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DEMACS_SOURCE=${emacsSources}" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -d $out/share/emacs/site-lisp
|
|
|
|
install ../*.el $out/share/emacs/site-lisp
|
2018-11-18 19:45:42 +00:00
|
|
|
install ./*.so $out/share/emacs/site-lisp
|
2018-05-16 06:56:13 +01:00
|
|
|
'';
|
|
|
|
}
|