lol

quickjs: fix build on darwin

authored by

Mario Rodas and committed by
Anderson Torres
429c8adc ea50b72f

+7 -3
+7 -3
pkgs/development/interpreters/quickjs/default.nix
··· 15 15 hash = "sha256-VMaxVVQuJ3DAwYrC14uJqlRBg0//ugYvtyhOXsTUbCA="; 16 16 }; 17 17 18 + postPatch = lib.optionalString stdenv.isDarwin '' 19 + substituteInPlace Makefile --replace "CONFIG_LTO=y" "" 20 + ''; 21 + 18 22 makeFlags = [ "prefix=${placeholder "out"}" ]; 19 23 enableParallelBuilding = true; 20 24 ··· 45 49 temp=$(mktemp).js 46 50 echo "console.log('Output from compiled program');" > "$temp" 47 51 set -o verbose 48 - out=$(mktemp) && qjsc "$temp" -o "$out" && "$out" | grep -q "Output from compiled program" 49 - out=$(mktemp) && qjsc -flto "$temp" -o "$out" && "$out" | grep -q "Output from compiled program" 52 + out=$(mktemp) && qjsc -o "$out" "$temp" && "$out" | grep -q "Output from compiled program" 53 + out=$(mktemp) && qjsc -flto -o "$out" "$temp" && "$out" | grep -q "Output from compiled program" 50 54 ''; 51 55 52 56 meta = with lib; { 53 57 description = "A small and embeddable Javascript engine"; 54 58 homepage = "https://bellard.org/quickjs/"; 55 59 maintainers = with maintainers; [ stesie AndersonTorres ]; 56 - platforms = platforms.linux; 60 + platforms = platforms.unix; 57 61 license = licenses.mit; 58 62 mainProgram = "qjs"; 59 63 };