diff options
author | Graham Bennett <graham@grahambennett.org> | 2020-09-02 23:55:05 +0100 |
---|---|---|
committer | Graham Bennett <graham@grahambennett.org> | 2020-09-06 19:57:21 +0100 |
commit | e10228defa08877593ca31d50e38a430e3cb3c64 (patch) | |
tree | 379d11e26c60c3eb06dff9575ff7582ab8c2d9bf /pkgs/development/libraries/science/math/suitesparse | |
parent | a2842c74408a4364d563f7451ddd381e59bf11ce (diff) |
suitesparse: remove custom fixDarwinDylibNames postInstall
This shadows the regular fixDarwinDylibNames function, which is a
nativeBuildInput, and prevents it from converting some relative paths to
absolute. According to the comment this can be removed as of 5.7.2.
Diffstat (limited to 'pkgs/development/libraries/science/math/suitesparse')
-rw-r--r-- | pkgs/development/libraries/science/math/suitesparse/default.nix | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/pkgs/development/libraries/science/math/suitesparse/default.nix b/pkgs/development/libraries/science/math/suitesparse/default.nix index f0480e1e2381..d50e065efc61 100644 --- a/pkgs/development/libraries/science/math/suitesparse/default.nix +++ b/pkgs/development/libraries/science/math/suitesparse/default.nix @@ -57,29 +57,6 @@ stdenv.mkDerivation rec { "library" ]; - # Likely fixed after 5.7.2 - # https://github.com/DrTimothyAldenDavis/SuiteSparse/commit/f6daae26ee391e475e2295e77c839aa7c1a8b784 - postInstall = stdenv.lib.optionalString stdenv.isDarwin '' - # The fixDarwinDylibNames in nixpkgs can't seem to fix all the libraries. - # We manually fix them up here. - fixDarwinDylibNames() { - local flags=() - local old_id - - for fn in "$@"; do - flags+=(-change "$PWD/lib/$(basename "$fn")" "$fn") - done - - for fn in "$@"; do - if [ -L "$fn" ]; then continue; fi - echo "$fn: fixing dylib" - install_name_tool -id "$fn" "''${flags[@]}" "$fn" - done - } - - fixDarwinDylibNames $(find "$out" -name "*.dylib") - ''; - meta = with stdenv.lib; { homepage = "http://faculty.cse.tamu.edu/davis/suitesparse.html"; description = "A suite of sparse matrix algorithms"; |