From 7be3e730fdbdc9e186553c46637c5c40e846ae69 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Tue, 13 Jan 2026 11:29:48 +0200 Subject: [PATCH] swt: add binaryNativeCode for Darwin Fixup to c26fd684d13e. --- pkgs/by-name/sw/swt/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/sw/swt/package.nix b/pkgs/by-name/sw/swt/package.nix index e1b3e1ae9a77..ba3f00e5e95a 100644 --- a/pkgs/by-name/sw/swt/package.nix +++ b/pkgs/by-name/sw/swt/package.nix @@ -144,6 +144,10 @@ stdenv.mkDerivation (finalAttrs: { mpl20 ]; maintainers = [ ]; + # The darwin src zip file holds simply a prebuilt swt.jar file + sourceProvenance = lib.optionals stdenv.hostPlatform.isDarwin [ + lib.sourceTypes.binaryNativeCode + ]; platforms = lib.attrNames finalAttrs.passthru.srcMetadataByPlatform; # Fails with: `java.nio.file.NoSuchFileException: ../swt.jar` broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64;