diff --git a/pkgs/by-name/ke/keyboard-layout-editor/deps.json b/pkgs/by-name/ke/keyboard-layout-editor/deps.json index 3a9c1e2f09ce0..95603f3e6339b 100644 --- a/pkgs/by-name/ke/keyboard-layout-editor/deps.json +++ b/pkgs/by-name/ke/keyboard-layout-editor/deps.json @@ -84,24 +84,60 @@ "org/openjfx#javafx-base/17/linux": { "jar": "sha256-JDzahjaTFMNLsQvgAj88mFaCNcpN7UpZ4Hgd1kC8SWI=" }, + "org/openjfx#javafx-base/17/linux-aarch64": { + "jar": "sha256-VpZzo52A7LSvD6ZtjdY5dKBAxGhfHwD1a/m+FNke5Dg=" + }, + "org/openjfx#javafx-base/17/mac": { + "jar": "sha256-11nPga0/qMIESAgMHq8drmDjfnDD2qTosMtbdQXfQDM=" + }, + "org/openjfx#javafx-base/17/mac-aarch64": { + "jar": "sha256-DIOY+UOTZuom1n6BVDnj2CebaqWZqyycrLRlb/qIHjg=" + }, "org/openjfx#javafx-controls/17": { "pom": "sha256-6UfbVFcEn1pKxmiSa2QUtLCRglYerVymiyNSTg4cwD8=" }, "org/openjfx#javafx-controls/17/linux": { "jar": "sha256-pa085GMw/aiPjx4/ue8E1kR2O6C2mpXkl66JTjWdrQg=" }, + "org/openjfx#javafx-controls/17/linux-aarch64": { + "jar": "sha256-IfMJAHqsbBKYYUHfGBf2d3n5WsM5Ee4lGxAGhBUqTvg=" + }, + "org/openjfx#javafx-controls/17/mac": { + "jar": "sha256-oH+WTR6TpUkZ0n24vx4I7TLFcwn9CIl+IGuXGIyWGiM=" + }, + "org/openjfx#javafx-controls/17/mac-aarch64": { + "jar": "sha256-NtdHe5GuuV1l9B58d5uXrvC19CrCYVhIYNfwPwqE1uo=" + }, "org/openjfx#javafx-fxml/17": { "pom": "sha256-5+IA5aFv3qbIDne2IhWyVMt9thHEy9K9jGtVeLt39oE=" }, "org/openjfx#javafx-fxml/17/linux": { "jar": "sha256-pkXtb3SSd3px+3c/IPO1OuIh9U0Fnl3p0dD2cmyam68=" }, + "org/openjfx#javafx-fxml/17/linux-aarch64": { + "jar": "sha256-tsq+SetXA3yaTPg9UMkTXMzpUmgZgLjvhsszptrBZTA=" + }, + "org/openjfx#javafx-fxml/17/mac": { + "jar": "sha256-caydrtrb/C5mVzmFwRrmH9y3nhBpEZaHZqt1y7EKhLA=" + }, + "org/openjfx#javafx-fxml/17/mac-aarch64": { + "jar": "sha256-WCBAk5mAff/pahKUoUZJIx+E3qUvxMQxqLlcXKsz9xk=" + }, "org/openjfx#javafx-graphics/17": { "pom": "sha256-3RVlTvq6FiyolcdAxqA7vUEu8XNwyMcOq9j6PTUer+I=" }, "org/openjfx#javafx-graphics/17/linux": { "jar": "sha256-YIAnF9iwTwE25rLNS5BGiQBSVml3328MF/dT+0eJ/aY=" }, + "org/openjfx#javafx-graphics/17/linux-aarch64": { + "jar": "sha256-DzmFQ+ZDshVPi96ir1bXR2hIncysLzlAcCnpLaPub1o=" + }, + "org/openjfx#javafx-graphics/17/mac": { + "jar": "sha256-Dzx9x1v3G9PgnsBAQ+a88LwnCKX9JeM4TpXWXCTe6pc=" + }, + "org/openjfx#javafx-graphics/17/mac-aarch64": { + "jar": "sha256-g/4n/hqq9NjcL27nLG3eBCy0j0tQkhOvndk8PwxCBTc=" + }, "org/openjfx#javafx/17": { "pom": "sha256-Mc+sHCBGlsqDJZzWCcK2kks3dBR+MOM9vEX+kKHnuww=" }, diff --git a/pkgs/by-name/ke/keyboard-layout-editor/package.nix b/pkgs/by-name/ke/keyboard-layout-editor/package.nix index ff88d38276139..babab710e0b66 100644 --- a/pkgs/by-name/ke/keyboard-layout-editor/package.nix +++ b/pkgs/by-name/ke/keyboard-layout-editor/package.nix @@ -34,6 +34,15 @@ stdenv.mkDerivation rec { wrapGAppsHook3 ]; + gradleUpdateScript = '' + runHook preBuild + + gradle nixDownloadDeps -Dos.family=linux -Dos.arch=amd64 + gradle nixDownloadDeps -Dos.family=linux -Dos.arch=aarch64 + gradle nixDownloadDeps -Dos.name='mac os x' -Dos.arch=amd64 + gradle nixDownloadDeps -Dos.name='mac os x' -Dos.arch=aarch64 + ''; + mitmCache = gradle_8.fetchDeps { inherit pname; data = ./deps.json; @@ -66,8 +75,11 @@ stdenv.mkDerivation rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ fliegendewurst ]; mainProgram = "keyboard-layout-editor"; - platforms = jdk.meta.platforms; - # gradle resolves platform-specific dependencies - broken = stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isDarwin; + platforms = [ + "x86_64-linux" + "aarch64-linux" + "x86_64-darwin" + "aarch64-darwin" + ]; }; }