summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock17
-rw-r--r--Cargo.nix112
-rw-r--r--Cargo.toml2
3 files changed, 131 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 1a72d14..fccfa2c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -165,9 +165,26 @@ dependencies = [
 ]
 
 [[package]]
+name = "advent_21"
+version = "0.1.0"
+dependencies = [
+ "advent_lib",
+ "assert_cmd",
+]
+
+[[package]]
+name = "advent_22"
+version = "0.1.0"
+dependencies = [
+ "advent_lib",
+ "assert_cmd",
+]
+
+[[package]]
 name = "advent_lib"
 version = "0.1.0"
 dependencies = [
+ "lalrpop",
  "lalrpop-util",
 ]
 
diff --git a/Cargo.nix b/Cargo.nix
index 9fa34dc..c5446f4 100644
--- a/Cargo.nix
+++ b/Cargo.nix
@@ -218,6 +218,36 @@ rec {
       # File a bug if you depend on any for non-debug work!
       debug = internal.debugCrate { inherit packageId; };
     };
+    "advent_20" = rec {
+      packageId = "advent_20";
+      build = internal.buildRustCrateWithFeatures {
+        packageId = "advent_20";
+      };
+
+      # Debug support which might change between releases.
+      # File a bug if you depend on any for non-debug work!
+      debug = internal.debugCrate { inherit packageId; };
+    };
+    "advent_21" = rec {
+      packageId = "advent_21";
+      build = internal.buildRustCrateWithFeatures {
+        packageId = "advent_21";
+      };
+
+      # Debug support which might change between releases.
+      # File a bug if you depend on any for non-debug work!
+      debug = internal.debugCrate { inherit packageId; };
+    };
+    "advent_22" = rec {
+      packageId = "advent_22";
+      build = internal.buildRustCrateWithFeatures {
+        packageId = "advent_22";
+      };
+
+      # Debug support which might change between releases.
+      # File a bug if you depend on any for non-debug work!
+      debug = internal.debugCrate { inherit packageId; };
+    };
     "advent_lib" = rec {
       packageId = "advent_lib";
       build = internal.buildRustCrateWithFeatures {
@@ -749,6 +779,81 @@ rec {
         ];
         
       };
+      "advent_20" = rec {
+        crateName = "advent_20";
+        version = "0.1.0";
+        edition = "2018";
+        crateBin = [
+          { name = "advent_20"; path = "src/main.rs"; }
+        ];
+        src = (builtins.filterSource sourceFilter ./20);
+        authors = [
+          "Irene Knapp <ireneista@gmail.com>"
+        ];
+        dependencies = [
+          {
+            name = "advent_lib";
+            packageId = "advent_lib";
+          }
+        ];
+        devDependencies = [
+          {
+            name = "assert_cmd";
+            packageId = "assert_cmd";
+          }
+        ];
+        
+      };
+      "advent_21" = rec {
+        crateName = "advent_21";
+        version = "0.1.0";
+        edition = "2018";
+        crateBin = [
+          { name = "advent_21"; path = "src/main.rs"; }
+        ];
+        src = (builtins.filterSource sourceFilter ./21);
+        authors = [
+          "Irene Knapp <ireneista@gmail.com>"
+        ];
+        dependencies = [
+          {
+            name = "advent_lib";
+            packageId = "advent_lib";
+          }
+        ];
+        devDependencies = [
+          {
+            name = "assert_cmd";
+            packageId = "assert_cmd";
+          }
+        ];
+        
+      };
+      "advent_22" = rec {
+        crateName = "advent_22";
+        version = "0.1.0";
+        edition = "2018";
+        crateBin = [
+          { name = "advent_22"; path = "src/main.rs"; }
+        ];
+        src = (builtins.filterSource sourceFilter ./22);
+        authors = [
+          "Irene Knapp <ireneista@gmail.com>"
+        ];
+        dependencies = [
+          {
+            name = "advent_lib";
+            packageId = "advent_lib";
+          }
+        ];
+        devDependencies = [
+          {
+            name = "assert_cmd";
+            packageId = "assert_cmd";
+          }
+        ];
+        
+      };
       "advent_lib" = rec {
         crateName = "advent_lib";
         version = "0.1.0";
@@ -763,6 +868,13 @@ rec {
             packageId = "lalrpop-util";
           }
         ];
+        buildDependencies = [
+          {
+            name = "lalrpop";
+            packageId = "lalrpop";
+            features = [ "lexer" ];
+          }
+        ];
         
       };
       "aho-corasick" = rec {
diff --git a/Cargo.toml b/Cargo.toml
index 154b354..8ee9c55 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,4 +21,6 @@ members = [
   "18",
   "19",
   "20",
+  "21",
+  "22",
 ]