From 158e4ffd9cfb3c1f90710c39f16617050a0d2a42 Mon Sep 17 00:00:00 2001 From: Aristid Breitkreuz Date: Mon, 30 Nov 2015 21:07:26 +0100 Subject: [PATCH] mathematica package patchPhase does not like set -e --- pkgs/applications/science/math/mathematica/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/science/math/mathematica/default.nix b/pkgs/applications/science/math/mathematica/default.nix index 233323fceef..05c6f262293 100644 --- a/pkgs/applications/science/math/mathematica/default.nix +++ b/pkgs/applications/science/math/mathematica/default.nix @@ -96,6 +96,8 @@ stdenv.mkDerivation rec { preFixup = '' echo "=== PatchElfing away ===" + # This code should be a bit forgiving of errors, unfortunately + set +e find $out/libexec/Mathematica/SystemFiles -type f -perm -0100 | while read f; do type=$(readelf -h "$f" 2>/dev/null | grep 'Type:' | sed -e 's/ *Type: *\([A-Z]*\) (.*/\1/') if [ -z "$type" ]; then