diff --git a/pkgs/by-name/rp/rpm-sequoia/package.nix b/pkgs/by-name/rp/rpm-sequoia/package.nix index d3ecf9fa91f6..4718e8c6c876 100644 --- a/pkgs/by-name/rp/rpm-sequoia/package.nix +++ b/pkgs/by-name/rp/rpm-sequoia/package.nix @@ -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 { };