summary refs log tree commit diff stats
path: root/packages
diff options
context:
space:
mode:
authorAlan Pearce2018-10-13 21:24:45 +0200
committerAlan Pearce2018-10-13 21:24:45 +0200
commit28f98b0ac1defee7bf5e66191fad21b260975d07 (patch)
tree2cb2f50fb9c8783be8a7ecc0e9a12b818a2d7de4 /packages
parent25cfc6f60ddd7e43772ad0c6c68c0ea47c31a324 (diff)
downloadnixos-configuration-28f98b0ac1defee7bf5e66191fad21b260975d07.tar.lz
nixos-configuration-28f98b0ac1defee7bf5e66191fad21b260975d07.tar.zst
nixos-configuration-28f98b0ac1defee7bf5e66191fad21b260975d07.zip
Emacs: Enable overriding package
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 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
     '';