From 96ca129160463ac44cf385a7a2070b037f686494 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Thu, 23 Nov 2023 04:20:00 +0000 Subject: [PATCH] emacsPackages.hotfuzz: build dynamic library --- .../emacs/elisp-packages/melpa-packages.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix index cd45cfc78727..3c8f89bd44d6 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";