From fe4bc3cc80bb20125726707b712991dca9c70c03 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 29 Apr 2014 20:40:28 +0200 Subject: [PATCH] Fix evaluation error http://hydra.nixos.org/build/10697257 --- pkgs/applications/science/math/sage/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/science/math/sage/default.nix b/pkgs/applications/science/math/sage/default.nix index 0fd8621b0e0e..ced8b6f95bb6 100644 --- a/pkgs/applications/science/math/sage/default.nix +++ b/pkgs/applications/science/math/sage/default.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { preConfigure = '' export SAGE_NUM_THREADS=$NIX_BUILD_CORES sed -i 's/if ! [ -d "$HOME" ]/if [ -d "$HOME" ]/' src/bin/sage-env - '' ++ stdenv.lib.optionalString stdenv.isDarwin '' + '' + stdenv.lib.optionalString stdenv.isDarwin '' sed -i "s/ld_version = try_run('ld -v')/ld_version = 'Apple'/" \ build/pkgs/atlas/configuration.py '';