all repos — nixfiles @ c1685df0853bcdb136ddb3216256937087441b60

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

nix: Allow emacs package to be specified
Alan Pearce alan@alanpearce.eu
Mon, 12 Jun 2017 19:11:11 +0200
commit

c1685df0853bcdb136ddb3216256937087441b60

parent

60abb4d802d2bf55b8aac25e69d34c06096ad761

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

jump to
M nix/.config/nixpkgs/emacs.nixnix/.config/nixpkgs/emacs.nix
@@ -1,11 +1,11 @@ {
   pkgs ? import <nixpkgs> {},
+  emacs ? pkgs.emacs,
   stdenv,
-  withMacPort ? stdenv.isDarwin
 }:
 
 let
-  myEmacs = if withMacPort then pkgs.emacs25Macport else pkgs.emacs;
+  myEmacs = emacs;
   emacsWithPackages = (pkgs.emacsPackagesNgGen myEmacs).emacsWithPackages;
 
   elpaBuild = import <nixpkgs/pkgs/build-support/emacs/elpa.nix> {