summary refs log tree commit diff
path: root/pkgs/stdenv/adapters.nix
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-12-26 12:38:18 -0500
committerShea Levy <shea@shealevy.com>2014-12-26 12:38:18 -0500
commitbbd2be60756c50a02822fd4c4bc0c74a625b7418 (patch)
treec0592e0728bb89f06ac539ea20e4c630edf38847 /pkgs/stdenv/adapters.nix
parent7e0a5c38f3564a07134d60182446fbfc0e0a257f (diff)
Restore accidentally-dropped stdenv adapter
Diffstat (limited to 'pkgs/stdenv/adapters.nix')
-rw-r--r--pkgs/stdenv/adapters.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/stdenv/adapters.nix b/pkgs/stdenv/adapters.nix
index c50db3bc04d20..6d8ca55a0fcd2 100644
--- a/pkgs/stdenv/adapters.nix
+++ b/pkgs/stdenv/adapters.nix
@@ -235,4 +235,9 @@ rec {
       });
     };
 
+  dropCxx = drv: drv.override {
+    stdenv = if pkgs.stdenv.isDarwin
+      then pkgs.allStdenvs.stdenvDarwinNaked
+      else pkgs.stdenv;
+  };
 }