diff --git a/nix/challenge-bypass-ristretto.nix b/nix/challenge-bypass-ristretto.nix
index 69599b03a83e96a4bc4aac4d464d00132f44800b..e81398666868869f3d872905b54e90b749d10d6b 100644
--- a/nix/challenge-bypass-ristretto.nix
+++ b/nix/challenge-bypass-ristretto.nix
@@ -6,4 +6,4 @@ in
 , callPackage
 , libchallenge_bypass_ristretto_ffi_repo ? sources.libchallenge_bypass_ristretto_ffi
 }:
-  import "${libchallenge_bypass_ristretto_ffi_repo}/default-challenge-bypass-ristretto-ffi.nix" { }
+  import "${libchallenge_bypass_ristretto_ffi_repo}/challenge-bypass-ristretto.nix" { }
diff --git a/nix/sources.json b/nix/sources.json
index d324dd9d74c110925df183e514cfe32eca60bbed..00cc4402acb7173bf2f2524f33d304c3a6ea0707 100644
--- a/nix/sources.json
+++ b/nix/sources.json
@@ -12,15 +12,15 @@
         "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
     },
     "libchallenge_bypass_ristretto_ffi": {
-        "branch": "master",
+        "branch": "lib-dir-is-lib-dir",
         "description": "Python bindings for Brave's challenge-bypass-ristretto library",
         "homepage": null,
         "owner": "leastauthority",
         "repo": "python-challenge-bypass-ristretto",
-        "rev": "v2021.07.12",
-        "sha256": "16af1qmx7srhvcc936x7hl2bz50hafm39311dbzqam9ms1i5q89j",
+        "rev": "7c99b67e8731486f1aa0193ac1325f77e7d6338d",
+        "sha256": "0w5vpq9kqhdbbynbbky1ibx1im5582yacqnb9y2y3h114diywdyq",
         "type": "tarball",
-        "url": "https://github.com/leastauthority/python-challenge-bypass-ristretto/archive/v2021.07.12.tar.gz",
+        "url": "https://github.com/leastauthority/python-challenge-bypass-ristretto/archive/7c99b67e8731486f1aa0193ac1325f77e7d6338d.tar.gz",
         "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
     },
     "niv": {