about summary refs log tree commit diff
path: root/overlays
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-03-02 01:15:58 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-03-02 01:40:48 +0100
commit0b27683ec932e0b2efaf7bd509573b1588ff23d8 (patch)
tree96b4a0018d244e8e224471255c73d753a14b99bd /overlays
parentUpdate (diff)
downloadnixos-config-0b27683ec932e0b2efaf7bd509573b1588ff23d8.tar.gz
nixos-config-0b27683ec932e0b2efaf7bd509573b1588ff23d8.tar.bz2
nixos-config-0b27683ec932e0b2efaf7bd509573b1588ff23d8.zip
Overlays: Base: Add emacs with runtime deps to overlay
Diffstat (limited to 'overlays')
-rw-r--r--overlays/base/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/overlays/base/default.nix b/overlays/base/default.nix
index 03d5799..5a9efb2 100644
--- a/overlays/base/default.nix
+++ b/overlays/base/default.nix
@@ -80,4 +80,12 @@ final: prev:
   mpv = prev.wrapMpv prev.mpv-unwrapped {
     scripts = [ prev.mpvScripts.mpris ];
   };
+
+  emacs = (prev.symlinkJoin {
+    inherit (prev.emacs) name;
+    inherit (prev.emacs) version;
+    paths = [ prev.emacs ];
+    nativeBuildInputs = [ prev.makeBinaryWrapper ];
+    postBuild = "wrapProgram $out/bin/emacs --prefix PATH : ${prev.lib.makeBinPath [ prev.nodejs prev.ripgrep ]}";
+  });
 }