From e0fd701942383f7c578fed15515038da18a52eaa Mon Sep 17 00:00:00 2001 From: "Jason \\\"Don\\\" O'Conal" Date: Sat, 7 Sep 2013 10:31:37 +1000 Subject: [PATCH] enscript: fix build on darwin (close #933, really this time) --- pkgs/top-level/all-packages.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 74f89506fbb7..fd791972a0cb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -802,7 +802,12 @@ let encfs = callPackage ../tools/filesystems/encfs { }; - enscript = callPackage ../tools/text/enscript { }; + enscript = callPackage ../tools/text/enscript { + # fix syntax errors + stdenv = if stdenv.isDarwin + then clangStdenv + else stdenv; + }; ethtool = callPackage ../tools/misc/ethtool { };