mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
emacsPackages.hotfuzz: build dynamic library
This commit is contained in:
parent
03bff322cd
commit
96ca129160
1 changed files with 14 additions and 0 deletions
|
@ -281,6 +281,20 @@ let
|
||||||
packageRequires = [ self.haskell-mode ];
|
packageRequires = [ self.haskell-mode ];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
hotfuzz = super.hotfuzz.overrideAttrs (old: {
|
||||||
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.cmake ];
|
||||||
|
|
||||||
|
dontUseCmakeBuildDir = true;
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
make -j$NIX_BUILD_CORES
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = (old.postInstall or "") + "\n" + ''
|
||||||
|
install source/hotfuzz-module.so $out/share/emacs/site-lisp/elpa/hotfuzz-*
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
|
||||||
irony = super.irony.overrideAttrs (old: {
|
irony = super.irony.overrideAttrs (old: {
|
||||||
cmakeFlags = old.cmakeFlags or [ ] ++ [ "-DCMAKE_INSTALL_BINDIR=bin" ];
|
cmakeFlags = old.cmakeFlags or [ ] ++ [ "-DCMAKE_INSTALL_BINDIR=bin" ];
|
||||||
env.NIX_CFLAGS_COMPILE = "-UCLANG_RESOURCE_DIR";
|
env.NIX_CFLAGS_COMPILE = "-UCLANG_RESOURCE_DIR";
|
||||||
|
|
Loading…
Reference in a new issue