Merge pull request #269590 from marsam/add-emacs-hotfuzz

emacsPackages.hotfuzz: build dynamic module
This commit is contained in:
adisbladis 2023-11-25 18:07:03 +13:00 committed by GitHub
commit 4909f03115
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";