diff --git a/nix/challenge-bypass-ristretto-repo.nix b/nix/challenge-bypass-ristretto-repo.nix deleted file mode 100644 index 1357efe3e9ab3c9480109c7a52864f751d9bfdc3..0000000000000000000000000000000000000000 --- a/nix/challenge-bypass-ristretto-repo.nix +++ /dev/null @@ -1,9 +0,0 @@ -let - pkgs = import <nixpkgs> {}; -in - pkgs.fetchFromGitHub { - owner = "LeastAuthority"; - repo = "python-challenge-bypass-ristretto"; - rev = "v2021.07.12"; - sha256 = "16af1qmx7srhvcc936x7hl2bz50hafm39311dbzqam9ms1i5q89j"; - } diff --git a/nix/challenge-bypass-ristretto.nix b/nix/challenge-bypass-ristretto.nix index dc08608de18a4fec80c90e75839b52c11817d59f..69599b03a83e96a4bc4aac4d464d00132f44800b 100644 --- a/nix/challenge-bypass-ristretto.nix +++ b/nix/challenge-bypass-ristretto.nix @@ -1,6 +1,9 @@ # Provide the ffi bindings to the Rust challenge-bypass-ristretto library. -{ fetchFromGitHub, callPackage }: let - src = import ./challenge-bypass-ristretto-repo.nix; + sources = import ./sources.nix; in - import "${src}/default-challenge-bypass-ristretto-ffi.nix" { } +{ fetchFromGitHub +, callPackage +, libchallenge_bypass_ristretto_ffi_repo ? sources.libchallenge_bypass_ristretto_ffi +}: + import "${libchallenge_bypass_ristretto_ffi_repo}/default-challenge-bypass-ristretto-ffi.nix" { }