about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-12-22 08:37:23 -0500
committerGitHub <noreply@github.com>2023-12-22 08:37:23 -0500
commit9f39ab41a72d6e6e573dd8b08b91604aa7558f5a (patch)
tree6f8d3b5c04f3550aeaa29086ca4d5b1ae5bf05c0
parent51b96e8410a5975ebda0e007ebc514b4dd139163 (diff)
parentdf22fb01dfdd4e35ddb6b8edbb3c709deaa353a2 (diff)
downloadnixlib-9f39ab41a72d6e6e573dd8b08b91604aa7558f5a.tar
nixlib-9f39ab41a72d6e6e573dd8b08b91604aa7558f5a.tar.gz
nixlib-9f39ab41a72d6e6e573dd8b08b91604aa7558f5a.tar.bz2
nixlib-9f39ab41a72d6e6e573dd8b08b91604aa7558f5a.tar.lz
nixlib-9f39ab41a72d6e6e573dd8b08b91604aa7558f5a.tar.xz
nixlib-9f39ab41a72d6e6e573dd8b08b91604aa7558f5a.tar.zst
nixlib-9f39ab41a72d6e6e573dd8b08b91604aa7558f5a.zip
Merge pull request #276003 from codedownio/julia-pkgs-fix-registry
julia.withPackages: update registry to fix missing hash for FiniteDiff.jl
-rwxr-xr-xpkgs/development/julia-modules/python/sources_nix.py6
-rw-r--r--pkgs/development/julia-modules/registry.nix6
2 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/julia-modules/python/sources_nix.py b/pkgs/development/julia-modules/python/sources_nix.py
index 99a952753e80..989bf6bf186f 100755
--- a/pkgs/development/julia-modules/python/sources_nix.py
+++ b/pkgs/development/julia-modules/python/sources_nix.py
@@ -45,10 +45,14 @@ with open(out_path, "w") as f:
       path = registry_info["path"]
       packageToml = toml.load(registry_path / path / "Package.toml")
 
-      all_versions = toml.load(registry_path / path / "Versions.toml")
+      versions_toml = registry_path / path / "Versions.toml"
+      all_versions = toml.load(versions_toml)
       if not pkg["version"] in all_versions: continue
       version_to_use = all_versions[pkg["version"]]
 
+      if not "nix-sha256" in version_to_use:
+        raise KeyError(f"""Couldn't find nix-sha256 hash for {pkg["name"]} {pkg["version"]} in {versions_toml}. This might indicate that we failed to prefetch the hash when computing the augmented registry. Was there a relevant failure in {registry_path / "failures.yml"}?""")
+
       repo = packageToml["repo"]
       f.write(f"""  "{uuid}" = {{
     src = fetchgit {{
diff --git a/pkgs/development/julia-modules/registry.nix b/pkgs/development/julia-modules/registry.nix
index 929a805b48c5..71d0a2733e8c 100644
--- a/pkgs/development/julia-modules/registry.nix
+++ b/pkgs/development/julia-modules/registry.nix
@@ -3,7 +3,7 @@
 fetchFromGitHub {
   owner = "CodeDownIO";
   repo = "General";
-  rev = "baf9e22ecdf97b6424a611ac4a565c6ee60d3f44";
-  sha256 = "1nd3x2z8r6578149pbpkx9qw2ajln1kfy7w5kjsnv56v180h0ddf";
-  # date = "2023-12-14T12:20:00+00:00";
+  rev = "de80ad56e87f222ca6a7a517c69039d35437ab42";
+  sha256 = "0pz1jmmcb2vn854w8w0zlpnihi470649cd8djh1wzgq2i2fy83bl";
+  # date = "2023-12-22T03:28:12+00:00";
 }