summary refs log tree commit diff stats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/emacs.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/emacs.nix b/packages/emacs.nix
index 3dae49a1..dc99878c 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
     '';