Code change:
Describe the bug fails to build when attempting to cross-compile to aarch64 on : To Reproduce Expected behavior builds without error. Metadata nixpkgs Maintainer information:
I marked this as stale due to inactivity. &rarr;
Not stale - this issue still reproduces on current nixos-unstable ()

Related discussion:
text: sha256 = "sha256-umY3wQfG26Okqnw+MCUnlwWTAyJ6MR/FHe5oe61KBh0="; }; <del> # The contents of this file comes from the Jamtop file from the # root of the ArgyllCMS distribution, rewritten to pick up Nixpkgs # library paths. When ArgyllCMS is updated, make sure that changes # in that file is reflected here. jamTop = writeText "argyllcms_jamtop" '' DESTDIR = "/" ; REFSUBDIR = "share/argyllcms" ; </del> <ins> nativeBuildInputs = [ jam unzip ]; </ins> <del> # Keep this DESTDIR anchored to Jamtop. PREFIX is used literally ANCHORED_PATH_VARS = DESTDIR ; </del> <ins> postPatch = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' substituteInPlace Jambase  --replace "-m64" "" ''; </ins> <del> # Tell standalone libraries that they are part of Argyll: DEFINES += ARGYLLCMS ; </del> <ins> preConfigure = let # The contents of this file comes from the Jamtop file from the # root of the ArgyllCMS distribution, rewritten to pick up Nixpkgs # library paths. When ArgyllCMS is updated, make sure that changes # in that file is reflected here. jamTop = writeText "argyllcms_jamtop" '' DESTDIR = "/" ; REFSUBDIR = "share/argyllcms" ; </ins> <del> # enable serial instruments & support USE_SERIAL = true ; </del> <ins> # Keep this DESTDIR anchored to Jamtop. PREFIX is used literally ANCHORED_PATH_VARS = DESTDIR ; </ins> <del> # enable fast serial instruments & support USE_FAST_SERIAL = true ;                # (Implicit in USE_SERIAL too) </del> <ins> # Tell standalone libraries that they are part of Argyll: DEFINES += ARGYLLCMS ; </ins> <del> # enable USB instruments & support USE_USB = true ; </del> <ins> # enable serial instruments & support USE_SERIAL = true ; </ins> <del> # enable dummy Demo Instrument (only if code is available) USE_DEMOINST = true ; </del> <ins> # enable fast serial instruments & support USE_FAST_SERIAL = true ;                # (Implicit in USE_SERIAL too) </ins> <del> # enable Video Test Patch Generator and 3DLUT device support # (V2.0.0 and above) USE_VTPGLUT = false ; </del> <ins> # enable USB instruments & support USE_USB = true ; </ins> <del> # enable Printer device support USE_PRINTER = false ; </del> <ins> # enable dummy Demo Instrument (only if code is available) USE_DEMOINST = true ; </ins> <del> # enable CMF Measurement device and accessory support (if present) USE_CMFM = false ; </del> <ins> # enable Video Test Patch Generator and 3DLUT device support # (V2.0.0 and above) USE_VTPGLUT = false ; </ins> <del> # Use ArgyllCMS version of libusb (deprecated - don't use) USE_LIBUSB = false ; </del> <ins> # enable Printer device support USE_PRINTER = false ; </ins> <del> # Compile in graph plotting code (Not fully implemented) USE_PLOT = true ;		# [true] </del> <ins> # enable CMF Measurement device and accessory support (if present) USE_CMFM = false ; </ins> <del> JPEGLIB = ; JPEGINC = ; HAVE_JPEG = true ; </del> <ins> # Use ArgyllCMS version of libusb (deprecated - don't use) USE_LIBUSB = false ; </ins> <del> TIFFLIB = ; TIFFINC = ; HAVE_TIFF = true ; </del> <ins> # Compile in graph plotting code (Not fully implemented) USE_PLOT = true ;		# [true] </ins> <del> PNGLIB = ; PNGINC = ; HAVE_PNG = true ; </del> <ins> JPEGLIB = ; JPEGINC = ; HAVE_JPEG = true ; </ins> <del> ZLIB = ; ZINC = ; HAVE_Z = true ; </del> <ins> TIFFLIB = ; TIFFINC = ; HAVE_TIFF = true ; </ins> <del> SSLLIB = ; SSLINC = ; HAVE_SSL = true ; </del> <ins> PNGLIB = ; PNGINC = ; HAVE_PNG = true ; </ins> <del> LINKFLAGS += ${lib.concatStringsSep " " (map (x: "-L${x}/lib") buildInputs)} -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ljpeg -ltiff -lpng -lssl ; ''; </del> <ins> ZLIB = ; ZINC = ; HAVE_Z = true ; </ins> <del> nativeBuildInputs = [ jam unzip ]; </del> <ins> SSLLIB = ; SSLINC = ; HAVE_SSL = true ; </ins> <del> preConfigure = '' </del> <ins> LINKFLAGS += ${lib.concatStringsSep " " (map (x: "-L${x}/lib") buildInputs)} -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ljpeg -ltiff -lpng -lssl ; ''; in '' </ins> cp ${jamTop} Jamtop substituteInPlace Makefile --replace "-j 3" "-j $NIX_BUILD_CORES" # Remove tiff, jpg and png to be sure the nixpkgs-provided ones are used rm -rf tiff jpg png <del> unset AR </del> <ins> export AR="$AR rusc" </ins> ''; buildInputs = [