From 1c1e3ce4c0f6d7018b6e493d7f1761706993c21e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= Date: Tue, 2 Jun 2020 21:12:40 +0200 Subject: [PATCH] Make it compatible with `ocaml` module Fixes: #12 --- default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/default.nix b/default.nix index b02a709..723fed5 100644 --- a/default.nix +++ b/default.nix @@ -111,6 +111,19 @@ let ob-racket = self.straightBuild { pname = "ob-racket"; }; + + # dune has a nontrivial derivation, which does not buildable from the melpa + # wrapper falling back to the one in nixpkgs + dune = pkgs.dune.overrideAttrs (old: { + # Emacs derivations require an ename attribute + ename = old.pname; + + # Need to adjust paths here match what doom expects + postInstall = '' + mkdir -p $out/share/emacs/site-lisp/editor-integration + ln -snf $out/share/emacs/site-lisp $out/share/emacs/site-lisp/editor-integration/emacs + ''; + }); }; # Stage 1: prepare source for byte-compilation