mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #269590 from marsam/add-emacs-hotfuzz
emacsPackages.hotfuzz: build dynamic module
This commit is contained in:
commit
4909f03115
1 changed files with 14 additions and 0 deletions
|
@ -281,6 +281,20 @@ let
|
|||
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: {
|
||||
cmakeFlags = old.cmakeFlags or [ ] ++ [ "-DCMAKE_INSTALL_BINDIR=bin" ];
|
||||
env.NIX_CFLAGS_COMPILE = "-UCLANG_RESOURCE_DIR";
|
||||
|
|
Loading…
Reference in a new issue