all repos — nixfiles @ 28f98b0ac1defee7bf5e66191fad21b260975d07

System and user configuration, managed by nix and home-manager

Emacs: Enable overriding package
Alan Pearce alan@alanpearce.eu
Sat, 13 Oct 2018 21:24:45 +0200
commit

28f98b0ac1defee7bf5e66191fad21b260975d07

parent

25cfc6f60ddd7e43772ad0c6c68c0ea47c31a324

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M packages/emacs.nixpackages/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
     '';