1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-07 01:21:00 +01:00

meson: Fix SONAME for unstable versions

Replacing the string is not enough [^] for e.g. nixpkgs precise versions:

`2.31pre20250712_b1245123`

[^]: https://github.com/NixOS/nixpkgs/pull/444089
This commit is contained in:
Sergei Zimmerman 2025-09-18 23:34:27 +03:00
parent 3a687eeb4f
commit 7dbfe9f576
No known key found for this signature in database

View file

@ -42,4 +42,4 @@ if cxx.get_id() == 'clang' and ('address' in get_option('b_sanitize') or 'undefi
endif
# Darwin ld doesn't like "X.Y.Zpre"
nix_soversion = meson.project_version().replace('pre', '')
nix_soversion = meson.project_version().split('pre')[0]