emacsPackages.hotfuzz: build dynamic library

This commit is contained in:
Mario Rodas 2023-11-23 04:20:00 +00:00
parent 03bff322cd
commit 96ca129160

View file

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