cbqn: 0.2.0 -> 0.3.0

authored by Antti Keränen and committed by Anderson Torres fef3d83a 83174fd5

+8 -8
+8 -8
pkgs/development/interpreters/bqn/cbqn/default.nix
··· 8 8 , bqn-path ? null 9 9 , mbqn-source 10 10 , enableReplxx ? false 11 - , enableSingeli ? stdenv.hostPlatform.avx2Support 12 11 , enableLibcbqn ? ((stdenv.hostPlatform.isLinux || stdenv.hostPlatform.isDarwin) && !enableReplxx) 13 12 , libffi 14 13 , pkg-config ··· 24 23 25 24 stdenv.mkDerivation rec { 26 25 pname = "cbqn" + lib.optionalString (!genBytecode) "-standalone"; 27 - version = "0.2.0"; 26 + version = "0.3.0"; 28 27 29 28 src = fetchFromGitHub { 30 29 owner = "dzaima"; 31 30 repo = "CBQN"; 32 31 rev = "v${version}"; 33 - hash = "sha256-M9GTsm65DySLcMk9QDEhImHnUvWtYGPwiG657wHg3KA="; 32 + hash = "sha256-LoxwNxuadbYJgIkr1+bZoErTc9WllN2siAsKnxoom3Y="; 34 33 }; 35 34 36 35 nativeBuildInputs = [ ··· 55 54 56 55 buildFlags = [ 57 56 # interpreter binary 58 - (lib.flatten (if enableSingeli then ["o3n-singeli" "f='-mavx2'"] else ["o3"])) 57 + "o3" 58 + "notui=1" # display build progress in a plain-text format 59 59 "REPLXX=${if enableReplxx then "1" else "0"}" 60 + ] ++ lib.optionals stdenv.hostPlatform.avx2Support [ 61 + "has=avx2" 60 62 ] ++ lib.optionals enableLibcbqn [ 61 63 # embeddable interpreter as a shared lib 62 64 "shared-o3" ··· 65 67 preBuild = '' 66 68 # Purity: avoids git downloading bytecode files 67 69 mkdir -p build/bytecodeLocal/gen 70 + cp -r ${singeli-submodule}/dev/* build/singeliLocal/ 68 71 '' + (if genBytecode then '' 69 72 ${bqn-path} ./build/genRuntime ${mbqn-source} build/bytecodeLocal/ 70 73 '' else '' ··· 72 75 '') 73 76 + lib.optionalString enableReplxx '' 74 77 cp -r ${replxx-submodule}/dev/* build/replxxLocal/ 75 - '' 76 - + lib.optionalString enableSingeli '' 77 - cp -r ${singeli-submodule}/dev/* build/singeliLocal/ 78 - ''; 78 + ''; 79 79 80 80 outputs = [ 81 81 "out"