ats2: fix build (#414951)

authored by Aleksana and committed by GitHub b46d78e3 56b033fe

+12 -3
+12 -3
pkgs/by-name/at/ats2/package.nix
··· 37 37 hash = "sha256-UWgDjFojPBYgykrCrJyYvVWY+Gc5d4aRGjTWjc528AM="; 38 38 }; 39 39 40 - postPatch = lib.optionalString stdenv.cc.isClang '' 41 - sed -i 's/gcc/clang/g' utils/*/DATS/atscc_util.dats 42 - ''; 40 + postPatch = 41 + '' 42 + for i in cstream intinf libgmp libjson-c libpcre; do 43 + ln -sf ../../../../../share/Makefile.gen contrib/atscntrb/atscntrb-hx-$i/SATS/DOCUGEN/Makefile.gen 44 + done 45 + for i in libcairo libsdl2; do 46 + ln -sf ../../../../../../share/Makefile.gen npm-utils/contrib/atscntrb/atscntrb-hx-$i/SATS/DOCUGEN/Makefile.gen 47 + done 48 + '' 49 + + lib.optionalString stdenv.cc.isClang '' 50 + sed -i 's/gcc/clang/g' utils/*/DATS/atscc_util.dats 51 + ''; 43 52 44 53 buildInputs = [ gmp ]; 45 54