summary refs log tree commit diff
path: root/pkgs/stdenv/generic
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2023-07-30 19:31:21 +0200
committerVladimír Čunát <v@cunat.cz>2023-07-30 21:18:30 +0200
commit39919b8f215110c1516f5c6b300f5ee69df23fd4 (patch)
tree5cce9bf9bb4df19dba4c6c46e9e10cd6c7094099 /pkgs/stdenv/generic
parent4168b4005a897ae700d040af7e9352196b2b8d6d (diff)
downloadnixpkgs-39919b8f215110c1516f5c6b300f5ee69df23fd4.tar
nixpkgs-39919b8f215110c1516f5c6b300f5ee69df23fd4.tar.gz
nixpkgs-39919b8f215110c1516f5c6b300f5ee69df23fd4.tar.bz2
nixpkgs-39919b8f215110c1516f5c6b300f5ee69df23fd4.tar.lz
nixpkgs-39919b8f215110c1516f5c6b300f5ee69df23fd4.tar.xz
nixpkgs-39919b8f215110c1516f5c6b300f5ee69df23fd4.tar.zst
nixpkgs-39919b8f215110c1516f5c6b300f5ee69df23fd4.zip
stdenv: use improved strip.sh for aarch64-linux
Adapted from PR #246164
TODO: clean up / use it everywhere on the next rebuild.
Diffstat (limited to 'pkgs/stdenv/generic')
-rw-r--r--pkgs/stdenv/generic/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix
index cf194be92bd..0d9ae8d3c4f 100644
--- a/pkgs/stdenv/generic/default.nix
+++ b/pkgs/stdenv/generic/default.nix
@@ -70,7 +70,10 @@ let
       ../../build-support/setup-hooks/prune-libtool-files.sh
       ../../build-support/setup-hooks/reproducible-builds.sh
       ../../build-support/setup-hooks/set-source-date-epoch-to-latest.sh
-      ../../build-support/setup-hooks/strip.sh
+      (with buildPlatform; if isAarch64 && isLinux
+        then ../../build-support/setup-hooks/strip-tmp-aarch64.sh
+        else ../../build-support/setup-hooks/strip.sh
+      )
     ] ++ lib.optionals hasCC [ cc ];
 
   defaultBuildInputs = extraBuildInputs;