From 848ef66feba6aa04a50f8daaf57f7a8a8145d4b5 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 28 Nov 2022 15:22:48 +0100 Subject: [PATCH 1/2] mbqn: 0.pre+date=2022-10-03 -> 0.pre+date=2022-11-24 --- pkgs/development/interpreters/bqn/mlochbaum-bqn/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/interpreters/bqn/mlochbaum-bqn/default.nix b/pkgs/development/interpreters/bqn/mlochbaum-bqn/default.nix index 83d4a08e33dc..1390eebe44ef 100644 --- a/pkgs/development/interpreters/bqn/mlochbaum-bqn/default.nix +++ b/pkgs/development/interpreters/bqn/mlochbaum-bqn/default.nix @@ -7,13 +7,13 @@ stdenvNoCC.mkDerivation rec { pname = "bqn"; - version = "0.pre+date=2022-10-03"; + version = "0.pre+date=2022-11-24"; src = fetchFromGitHub { owner = "mlochbaum"; repo = "BQN"; - rev = "1518205cceeb1fef27c584d24e92b189ffd234f4"; - hash = "sha256:1pyk331ymbs2fv9jxmbv28yvk9mr2mcni1dsja6fzkk1jrd767hy"; + rev = "976bd82fb0e830876cca117c302c8a19048033a4"; + hash = "sha256:1nhn30ypc2zvq58b3zi66ypc9wv3v8cryn43cqihazc1lq8qxqdw"; }; nativeBuildInputs = [ makeWrapper ]; From 957408ced4ae24259908e98e53e335fe83c3e02b Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 28 Nov 2022 15:24:45 +0100 Subject: [PATCH 2/2] cbqn: 0.pre+date=2022-10-04 -> 0.pre+date=2022-11-27 How the bytecode is generated, was changed again slightly. --- .../interpreters/bqn/cbqn/default.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/development/interpreters/bqn/cbqn/default.nix b/pkgs/development/interpreters/bqn/cbqn/default.nix index f45dda4088fa..a1aad41fe973 100644 --- a/pkgs/development/interpreters/bqn/cbqn/default.nix +++ b/pkgs/development/interpreters/bqn/cbqn/default.nix @@ -5,6 +5,7 @@ , bqn-path ? null , mbqn-source ? null , libffi +, pkg-config }: let @@ -20,15 +21,20 @@ assert genBytecode -> ((bqn-path != null) && (mbqn-source != null)); stdenv.mkDerivation rec { pname = "cbqn" + lib.optionalString (!genBytecode) "-standalone"; - version = "0.pre+date=2022-10-04"; + version = "0.pre+date=2022-11-27"; src = fetchFromGitHub { owner = "dzaima"; repo = "CBQN"; - rev = "abcb575a537712763e9e53b6cb0eb415346b00e6"; - hash = "sha256:05gqw2ppcykv36ji8mkp8mq502q84vk9algp9c2d3z495xqy8rn6"; + rev = "dbc7c83f7085d05e87721bedf1ee38931f671a8e"; + hash = "sha256:0nal1fs9y7nyx4d5q1qw868lxk7mivzw2y16wc3hw97pq4qf0dpb"; }; + nativeBuildInputs = [ + pkg-config + ]; + + # TODO(@sternenseemann): allow building against dzaima's replxx fork buildInputs = [ libffi ]; @@ -45,11 +51,11 @@ stdenv.mkDerivation rec { preBuild = '' # Purity: avoids git downloading bytecode files - touch src/gen/customRuntime + mkdir -p build/bytecodeLocal/gen '' + (if genBytecode then '' - ${bqn-path} genRuntime ${mbqn-source} + ${bqn-path} ./build/genRuntime ${mbqn-source} build/bytecodeLocal/ '' else '' - cp ${cbqn-bytecode-files}/src/gen/{compiles,explain,formatter,runtime0,runtime1,src} src/gen/ + cp ${cbqn-bytecode-files}/src/gen/{compiles,explain,formatter,runtime0,runtime1,src} build/bytecodeLocal/gen/ '') # Need to adjust ld flags for darwin manually # https://github.com/dzaima/CBQN/issues/26