Skip to content

Commit

Permalink
fix build with nix 2.24
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Aug 17, 2024
1 parent aa57866 commit ac6b58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion attic/src/nix_store/bindings/nix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ CPathInfo::CPathInfo(nix::ref<const nix::ValidPathInfo> pi) : pi(pi) {}
RHashSlice CPathInfo::nar_sha256_hash() {
auto &hash = this->pi->narHash;

if (hash.type != nix::htSHA256) {
if (hash.algo != nix::HashAlgorithm::SHA256) {
throw nix::Error("Only SHA-256 hashes are supported at the moment");
}

Expand Down

0 comments on commit ac6b58f

Please sign in to comment.