mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
9b090ccbca
That is because this commit should be merged to both master and release-19.09.
19 lines
590 B
Nix
19 lines
590 B
Nix
with import ../../../default.nix {};
|
|
runCommand "openssl-lib-marked" {} ''
|
|
mkdir -p "$out/lib"
|
|
for lib in ssl crypto; do
|
|
version="${lib.getVersion openssl}"
|
|
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
|
|
''
|