C API: update after rebase

This commit is contained in:
Yorick van Pelt 2023-08-28 17:27:05 +02:00 committed by José Luis Lafuente
parent e1bb799da9
commit 9e423dee11
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A
2 changed files with 3 additions and 2 deletions

View file

@ -9,7 +9,7 @@ libexprc_SOURCES := \
libexprc_CXXFLAGS += -I src/libutil -Isrc/libfetchers -I src/libstore -I src/libstorec -I src/libexpr -I src/libutil/c -I src/libstore/c
libexprc_LIBS = libutil libutilc libstorec libexpr
libexprc_LIBS = libutil libutilc libstore libstorec libexpr
libexprc_LDFLAGS += -pthread

View file

@ -3,6 +3,7 @@
#include "nix_api_util.h"
#include "nix_api_util_internal.h"
#include "path.hh"
#include "store-api.hh"
#include "globals.hh"
@ -118,7 +119,7 @@ nix_err nix_store_build(
try {
store->ptr->buildPaths({
nix::DerivedPath::Built{
.drvPath = path->path,
.drvPath = nix::makeConstantStorePathRef(path->path),
.outputs = nix::OutputsSpec::All{},
},
});