Skip to content

Commit 56fea72

Browse files
authored
rpm-sequoia: fixup darwin build (#355540)
2 parents 45d55ab + bed1d1e commit 56fea72

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkgs/by-name/rp/rpm-sequoia/package.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,17 @@ rustPlatform.buildRustPackage rec {
5555
''
5656
+
5757
# Dependents will rely on the versioned symlinks
58-
''
58+
lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
5959
install -d $out/lib
6060
find target/release/ \
6161
-maxdepth 1 \
6262
-type l -name 'librpm_sequoia.*' \
6363
-exec cp --no-dereference {} $out/lib/ \;
64-
'';
64+
''
65+
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
66+
install -d $out/lib
67+
ln -s librpm_sequoia.dylib $out/lib/librpm_sequoia.${version}.dylib
68+
'';
6569

6670
passthru.updateScript = nix-update-script { };
6771

0 commit comments

Comments
 (0)