[staging] openssl: fix bin installation for static builds (#119825)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Jonathan Ringer 2021-04-20 14:49:39 -07:00 committed by GitHub
parent e09786ff64
commit 9d8c015cb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,8 +123,6 @@ let
if [ -n "$(echo $out/lib/*.so $out/lib/*.dylib $out/lib/*.dll)" ]; then
rm "$out/lib/"*.a
fi
mkdir -p $bin
'' + lib.optionalString (!stdenv.hostPlatform.isWindows)
# Fix bin/c_rehash's perl interpreter line
#
@ -138,9 +136,9 @@ let
# "#!/usr/bin/env perl"
''
substituteInPlace $out/bin/c_rehash --replace ${buildPackages.perl}/bin/perl "/usr/bin/env perl"
'' +
''
mv $out/bin $bin/
'' + ''
mkdir -p $bin
mv $out/bin $bin/bin
mkdir $dev
mv $out/include $dev/