rpm-sequoia: fixup darwin build (#355540)

This commit is contained in:
Emily 2024-11-12 22:57:58 +00:00 committed by GitHub
commit 56fea726ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,13 +55,17 @@ rustPlatform.buildRustPackage rec {
''
+
# Dependents will rely on the versioned symlinks
''
lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
install -d $out/lib
find target/release/ \
-maxdepth 1 \
-type l -name 'librpm_sequoia.*' \
-exec cp --no-dereference {} $out/lib/ \;
'';
''
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
install -d $out/lib
ln -s librpm_sequoia.dylib $out/lib/librpm_sequoia.${version}.dylib
'';
passthru.updateScript = nix-update-script { };