Unverified Commit a6bf1bbd authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

code-cursor: fixes (#395545)

parents a084e920 e145dbdd
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ stdenvNoCC.mkDerivation {
      rsync -a -q ${appimageContents}/usr/share $out/ --exclude "*.so"

      # Fix the desktop file to point to the correct location
      substituteInPlace $out/share/applications/cursor.desktop --replace-fail "/usr/share/cursor/cursor" "$out/share/cursor/cursor"
      substituteInPlace $out/share/applications/cursor.desktop --replace-fail "/usr/share/cursor/cursor" "$out/bin/cursor"

      wrapProgram $out/bin/cursor \
        --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}} --no-update"
@@ -196,13 +196,7 @@ stdenvNoCC.mkDerivation {
      sarahec
      aspauldingcode
    ];
    platforms = [
      "x86_64-linux"
      "x86_64-darwin"
      "aarch64-darwin"
    ];
    # Temporary: Cursor doesn't supply a 0.47.8 build for aarch64-linux
    badPlatforms = [ "aarch64-linux" ];
    platforms = lib.platforms.linux ++ lib.platforms.darwin;
    mainProgram = "cursor";
  };
}