mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
19 lines
612 B
Nix
19 lines
612 B
Nix
|
with import ../../../default.nix {};
|
||
|
runCommand "openssl-lib-marked" {} ''
|
||
|
mkdir -p "$out/lib"
|
||
|
for lib in ssl crypto; do
|
||
|
version="${(builtins.parseDrvName openssl.name).version}"
|
||
|
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
|
||
|
''
|