2018-09-12 10:47:19 +02:00
|
|
|
with import ../../../default.nix {};
|
|
|
|
runCommand "openssl-lib-marked" {} ''
|
|
|
|
mkdir -p "$out/lib"
|
|
|
|
for lib in ssl crypto; do
|
2019-11-24 18:22:28 +01:00
|
|
|
version="${lib.getVersion openssl}"
|
2018-09-12 10:47:19 +02:00
|
|
|
ln -s "${lib.getLib openssl}/lib/lib$lib.so" "$out/lib/lib$lib.so.$version"
|
|
|
|
version="$(echo "$version" | sed -re 's/[a-z]+$//')"
|
|
|
|
while test -n "$version"; do
|
|
|
|
ln -sfT "${lib.getLib openssl}/lib/lib$lib.so" "$out/lib/lib$lib.so.$version"
|
|
|
|
nextversion="''${version%.*}"
|
|
|
|
if test "$version" = "$nextversion"; then
|
|
|
|
version=
|
|
|
|
else
|
|
|
|
version="$nextversion"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
''
|