fix build against Nix 2.24 (#40)

* bump nixpkgs

* fix build against nix 2.24

* depend on nix 2.24
This commit is contained in:
Jörg Thalheim
2024-12-02 15:12:47 +01:00
committed by GitHub
parent 578ad85b30
commit 6e8d82a451
4 changed files with 8 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
#include <cstddef>
#include <cstdlib>
#include <nix/store-api.hh>
#include <nix/shared.hh>
#include <nix/log-store.hh>
#include "nix.hh"
@@ -14,8 +15,7 @@ static ref<Store> getStore()
static std::shared_ptr<Store> _store;
if (!_store) {
initLibStore();
loadConfFile();
initLibStore(true);
_store = openStore();
}
@@ -120,7 +120,7 @@ void queryPathInfo
output->deriver = emptyString;
};
copyString(validPathInfo->narHash.to_string(Base32, true), &output->narHash);
copyString(validPathInfo->narHash.to_string(nix::HashFormat::Nix32, true), &output->narHash);
output->narSize = validPathInfo->narSize;