all repos — archive/dotfiles @ 91316116c23af923dcdb828c03daad7eac3c8f9e

Superseded by nixfiles

nix: Parametrise use of macport
Alan Pearce alan@alanpearce.eu
Fri, 09 Jun 2017 22:09:24 +0200
commit

91316116c23af923dcdb828c03daad7eac3c8f9e

parent

f659263a26f84c8f4540e3ede0b7eba6cad00e2a

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

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