diff options
author | Alan Pearce | 2017-06-12 19:11:11 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-12 19:11:11 +0200 |
commit | c1685df0853bcdb136ddb3216256937087441b60 (patch) | |
tree | c52f65d45002d3f0b1ce6d8f2d024abfe3173e6c | |
parent | 60abb4d802d2bf55b8aac25e69d34c06096ad761 (diff) | |
download | dotfiles-c1685df0853bcdb136ddb3216256937087441b60.tar.lz dotfiles-c1685df0853bcdb136ddb3216256937087441b60.tar.zst dotfiles-c1685df0853bcdb136ddb3216256937087441b60.zip |
nix: Allow emacs package to be specified
-rw-r--r-- | nix/.config/nixpkgs/emacs.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nix/.config/nixpkgs/emacs.nix b/nix/.config/nixpkgs/emacs.nix index 9661736..1e439b6 100644 --- a/nix/.config/nixpkgs/emacs.nix +++ b/nix/.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> { |