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