diff options
author | adisbladis <adisbladis@gmail.com> | 2023-11-25 18:07:03 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-25 18:07:03 +1300 |
commit | 4909f031150c9effe9f62caea1270a9a1bfd7030 (patch) | |
tree | cb888eec059f68278782cbb74880e8e168bdcb3a /pkgs | |
parent | 4074ee2bc841bdefda51487ed2925bfef017c7f0 (diff) | |
parent | 96ca129160463ac44cf385a7a2070b037f686494 (diff) |
Merge pull request #269590 from marsam/add-emacs-hotfuzz
emacsPackages.hotfuzz: build dynamic module
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix index cd45cfc787271..3c8f89bd44d67 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix @@ -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"; |