about summary refs log tree commit diff
path: root/corp
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-12-06T13·31+0300
committertazjin <tazjin@tvl.su>2022-12-06T18·29+0000
commitf282984c25696dfbedc3ca2df9e44ca89b88b268 (patch)
tree2a65327af6842709eaedec84e5e591c59d211ea7 /corp
parent17e0a74e7b8eda6cdaeb0a6240738eb32356fcb1 (diff)
fix(tvix/eval): use rnix-parser from crates.io r/5396
A few weeks ago, oberblastmeister did a release to crates.io so we can
stop importing it via GitHub.

Change-Id: I9d5fa5cd281685779c71b12fed45ed201a1db17e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7532
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'corp')
-rw-r--r--corp/tvixbolt/Cargo.lock15
-rw-r--r--corp/tvixbolt/Cargo.toml5
-rw-r--r--corp/tvixbolt/default.nix12
3 files changed, 19 insertions, 13 deletions
diff --git a/corp/tvixbolt/Cargo.lock b/corp/tvixbolt/Cargo.lock
index 3359f6b36335..5ddeb6beecd2 100644
--- a/corp/tvixbolt/Cargo.lock
+++ b/corp/tvixbolt/Cargo.lock
@@ -433,8 +433,9 @@ checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244"
 
 [[package]]
 name = "rnix"
-version = "0.11.0-dev"
-source = "git+https://github.com/nix-community/rnix-parser.git?rev=85a045afd33e073a3eab4c0ea2f515b6bed557ab#85a045afd33e073a3eab4c0ea2f515b6bed557ab"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb35cedbeb70e0ccabef2a31bcff0aebd114f19566086300b8f42c725fc2cb5f"
 dependencies = [
  "rowan",
 ]
@@ -619,6 +620,16 @@ dependencies = [
  "serde_json",
  "smol_str",
  "tabwriter",
+ "tvix-eval-builtin-macros",
+]
+
+[[package]]
+name = "tvix-eval-builtin-macros"
+version = "0.0.1"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
 ]
 
 [[package]]
diff --git a/corp/tvixbolt/Cargo.toml b/corp/tvixbolt/Cargo.toml
index 7182e88d83ae..75006bec188e 100644
--- a/corp/tvixbolt/Cargo.toml
+++ b/corp/tvixbolt/Cargo.toml
@@ -10,14 +10,11 @@ yew = "0.19.3"
 yew-router = "0.16"
 codemap = "0.1.3"
 serde_urlencoded = "*" # pinned by yew
+rnix = "0.11.0"
 
 # needs to be in sync with nixpkgs
 wasm-bindgen = "= 0.2.83"
 
-[dependencies.rnix]
-git = "https://github.com/nix-community/rnix-parser.git"
-rev = "85a045afd33e073a3eab4c0ea2f515b6bed557ab"
-
 [dependencies.tvix-eval]
 path = "../../tvix/eval"
 default-features = false
diff --git a/corp/tvixbolt/default.nix b/corp/tvixbolt/default.nix
index 963be6623826..6d02836c4668 100644
--- a/corp/tvixbolt/default.nix
+++ b/corp/tvixbolt/default.nix
@@ -38,18 +38,19 @@ let
   # tvix-eval.
   cargoTomlPatch = pkgs.writeText "tvix-eval-src.patch" ''
     diff --git a/Cargo.toml b/Cargo.toml
-    index 2e6c793..67280e7 100644
+    index 75006bec18..6ca244bbb2 100644
     --- a/Cargo.toml
     +++ b/Cargo.toml
-    @@ -18,5 +18,5 @@ git = "https://github.com/nix-community/rnix-parser.git"
-     rev = "97b438e34be5211a4b48aeed9cc3ded489b4d6da"
+    @@ -16,7 +16,7 @@ rnix = "0.11.0"
+     wasm-bindgen = "= 0.2.83"
 
      [dependencies.tvix-eval]
     -path = "../../tvix/eval"
     +path = "${depot.tvix.eval.src}"
      default-features = false
-  '';
 
+     [dependencies.serde]
+  '';
 in
 pkgs.rustPlatform.buildRustPackage rec {
   pname = "tvixbolt";
@@ -57,9 +58,6 @@ pkgs.rustPlatform.buildRustPackage rec {
   src = lib.cleanSource ./.;
 
   cargoLock.lockFile = ./Cargo.lock;
-  cargoLock.outputHashes = {
-    "rnix-0.11.0-dev" = "sha256:01c3fdsfyp8iwr36nv2mvr2xw33ci3vcx6pw8a9qrc8pjr6q22f8";
-  };
 
   patches = [
     cargoTomlPatch