lol

Merge pull request #268227 from philiptaron/fix-squeak-build

authored by

Artturi and committed by
GitHub
38b1656c 5d7b00e6

+45 -10
+42 -9
pkgs/development/compilers/squeak/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchurl, fetchzip 2 - , autoconf, automake, autoreconfHook, clang, dos2unix, file, perl 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchurl 5 + , fetchzip 6 + , autoconf 7 + , automake 8 + , autoreconfHook 9 + , dos2unix 10 + , file 11 + , perl 3 12 , pkg-config 4 - , alsa-lib, coreutils, freetype, glib, glibc, gnugrep, libGL, libpulseaudio 5 - , libtool, libuuid, openssl, pango, xorg 6 - , squeakImageHash ? null, squeakSourcesHash ? null, squeakSourcesVersion ? null 7 - , squeakVersion ? null, squeakVmCommitHash ? null, squeakVmCommitHashHash ? null 13 + , alsa-lib 14 + , coreutils 15 + , freetype 16 + , glib 17 + , glibc 18 + , gnugrep 19 + , libGL 20 + , libpulseaudio 21 + , libtool 22 + , libuuid 23 + , openssl 24 + , pango 25 + , xorg 26 + , squeakImageHash ? null 27 + , squeakSourcesHash ? null 28 + , squeakSourcesVersion ? null 29 + , squeakVersion ? null 30 + , squeakVmCommitHash ? null 31 + , squeakVmCommitHashHash ? null 8 32 , squeakVmVersion ? null 9 33 } @ args: 10 34 11 35 let 12 - inherit (builtins) elemAt; 36 + inherit (builtins) elemAt toString; 37 + 13 38 nullableOr = o: default: if o == null then default else o; 14 39 15 40 bits = stdenv.hostPlatform.parsed.cpu.bits; ··· 75 100 autoconf 76 101 automake 77 102 autoreconfHook 78 - clang 79 103 dos2unix 80 104 file 81 105 perl ··· 140 164 # Workaround build failure on -fno-common toolchains: 141 165 # ld: vm/vm.a(cogit.o):spur64src/vm/cogitX64SysV.c:2552: multiple definition of 142 166 # `traceStores'; vm/vm.a(gcc3x-cointerp.o):spur64src/vm/cogit.h:140: first defined here 143 - env.NIX_CFLAGS_COMPILE = "-fcommon"; 167 + env.NIX_CFLAGS_COMPILE = toString ( 168 + [ "-fcommon" ] 169 + ++ (lib.optionals stdenv.cc.isClang [ 170 + # LLVM 16 turned these into errors (rightly, perhaps.) 171 + # Allow this package to continue to build despite this change. 172 + "-Wno-error=int-conversion" 173 + "-Wno-error=implicit-function-declaration" 174 + "-Wno-error=incompatible-function-pointer-types" 175 + ]) 176 + ); 144 177 145 178 preAutoreconf = '' 146 179 pushd ./platforms/unix/config > /dev/null
+3 -1
pkgs/top-level/all-packages.nix
··· 17273 17273 inherit (darwin.apple_sdk.frameworks) SystemConfiguration CoreFoundation Security; 17274 17274 }; 17275 17275 17276 - squeak = callPackage ../development/compilers/squeak { }; 17276 + squeak = callPackage ../development/compilers/squeak { 17277 + stdenv = clangStdenv; 17278 + }; 17277 17279 17278 17280 squirrel-sql = callPackage ../development/tools/database/squirrel-sql { 17279 17281 drivers = [ jtds_jdbc mssql_jdbc mysql_jdbc postgresql_jdbc ];