summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--packages/emacs.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/emacs.nix b/packages/emacs.nix
index 3dae49a..dc99878 100644
--- a/packages/emacs.nix
+++ b/packages/emacs.nix
@@ -1,9 +1,10 @@
 {
-  pkgs ? import <nixpkgs>
+  pkgs ? import <nixpkgs> {},
+  emacs ? pkgs.emacs
 }:
 
 let
-  myEmacs = pkgs.lib.overrideDerivation (pkgs.emacs) (attrs: {
+  myEmacs = pkgs.lib.overrideDerivation (emacs) (attrs: {
     postInstall = attrs.postInstall + ''
       rm $out/share/applications/emacs.desktop
     '';