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:
parent
578ad85b30
commit
6e8d82a451
@ -1,6 +1,7 @@
|
|||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <nix/store-api.hh>
|
#include <nix/store-api.hh>
|
||||||
|
#include <nix/shared.hh>
|
||||||
#include <nix/log-store.hh>
|
#include <nix/log-store.hh>
|
||||||
#include "nix.hh"
|
#include "nix.hh"
|
||||||
|
|
||||||
@ -14,8 +15,7 @@ static ref<Store> getStore()
|
|||||||
static std::shared_ptr<Store> _store;
|
static std::shared_ptr<Store> _store;
|
||||||
|
|
||||||
if (!_store) {
|
if (!_store) {
|
||||||
initLibStore();
|
initLibStore(true);
|
||||||
loadConfFile();
|
|
||||||
|
|
||||||
_store = openStore();
|
_store = openStore();
|
||||||
}
|
}
|
||||||
@ -120,7 +120,7 @@ void queryPathInfo
|
|||||||
output->deriver = emptyString;
|
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;
|
output->narSize = validPathInfo->narSize;
|
||||||
|
|
||||||
|
|||||||
6
flake.lock
generated
6
flake.lock
generated
@ -18,11 +18,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1700856099,
|
"lastModified": 1732238832,
|
||||||
"narHash": "sha256-RnEA7iJ36Ay9jI0WwP+/y4zjEhmeN6Cjs9VOFBH7eVQ=",
|
"narHash": "sha256-sQxuJm8rHY20xq6Ah+GwIUkF95tWjGRd1X8xF+Pkk38=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0bd59c54ef06bc34eca01e37d689f5e46b3fe2f1",
|
"rev": "8edf06bea5bcbee082df1b7369ff973b91618b8d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@ -35,6 +35,7 @@
|
|||||||
(old: {
|
(old: {
|
||||||
executableSystemDepends = (old.executableSystemDepends or []) ++ [
|
executableSystemDepends = (old.executableSystemDepends or []) ++ [
|
||||||
final.boost.dev
|
final.boost.dev
|
||||||
|
final.nixVersions.nix_2_24
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|||||||
@ -36,7 +36,7 @@ executable nix-serve
|
|||||||
cxx-sources: cbits/nix.cpp
|
cxx-sources: cbits/nix.cpp
|
||||||
, cbits/nix.hh
|
, cbits/nix.hh
|
||||||
|
|
||||||
cxx-options: -std=c++17
|
cxx-options: -std=c++20
|
||||||
|
|
||||||
build-depends: base < 5
|
build-depends: base < 5
|
||||||
, base16 >= 1.0
|
, base16 >= 1.0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user