Unverified Commit 56fea726 authored by Emily's avatar Emily Committed by GitHub
Browse files

rpm-sequoia: fixup darwin build (#355540)

parents 45d55abd bed1d1e4
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -55,12 +55,16 @@ 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 { };