about summary refs log tree commit diff
path: root/users/sterni/exercises/aoc/2022/default.nix
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-12-28T11·57+0100
committerclbot <clbot@tvl.fyi>2022-12-28T12·20+0000
commit5c748780b58b29612f121ecaca34f591bc7a53c0 (patch)
tree776acff52452e9fa5b12f8c0c1a5a4779893673f /users/sterni/exercises/aoc/2022/default.nix
parent6aafe2a223c00755d71cbc86bbabfe54d95611d3 (diff)
fix(sterni/aoc/2022): make solutions executable in bqn drv r/5522
BQNLIBS dependency also needs to be provided in the derivation running
all solutions.

Change-Id: I704369127ab92a52c7e4b21de8b7982fb8328f9d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7662
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Autosubmit: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'users/sterni/exercises/aoc/2022/default.nix')
-rw-r--r--users/sterni/exercises/aoc/2022/default.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/users/sterni/exercises/aoc/2022/default.nix b/users/sterni/exercises/aoc/2022/default.nix
index 77b33728470d..01134d130697 100644
--- a/users/sterni/exercises/aoc/2022/default.nix
+++ b/users/sterni/exercises/aoc/2022/default.nix
@@ -5,6 +5,13 @@ let
 
   # input files are not checked in
   meta.ci.skip = true;
+
+  BQNLIBS = pkgs.fetchFromGitHub {
+    owner = "mlochbaum";
+    repo = "bqn-libs";
+    rev = "d56d8ea0b8c294fac7274678d9ab112553a03f42";
+    sha256 = "1c1bkqj62v8m13jgaa32ridy0fk5iqysq5b2qwxbqxhky5zwnk9h";
+  };
 in
 
 depot.nix.readTree.drvTargets {
@@ -15,12 +22,7 @@ depot.nix.readTree.drvTargets {
       ngn-k
     ];
 
-    BQNLIBS = pkgs.fetchFromGitHub {
-      owner = "mlochbaum";
-      repo = "bqn-libs";
-      rev = "d56d8ea0b8c294fac7274678d9ab112553a03f42";
-      sha256 = "1c1bkqj62v8m13jgaa32ridy0fk5iqysq5b2qwxbqxhky5zwnk9h";
-    };
+    inherit BQNLIBS;
   };
 
   bqn = pkgs.runCommand "bqn-aoc-2022"
@@ -43,7 +45,7 @@ depot.nix.readTree.drvTargets {
           );
       };
 
-      inherit meta;
+      inherit meta BQNLIBS;
     }
     ''
       find "$aoc/2022" -name '*.bqn' -exec BQN {} \; | tee "$out"