Fix build
This commit is contained in:
parent
08e879c1fa
commit
940d71c32d
3 changed files with 6 additions and 5 deletions
|
@ -129,7 +129,7 @@ public:
|
||||||
contains a JSON serialisation of the listing of the NAR
|
contains a JSON serialisation of the listing of the NAR
|
||||||
contents) from the binary cache. */
|
contents) from the binary cache. */
|
||||||
auto now1 = std::chrono::steady_clock::now();
|
auto now1 = std::chrono::steady_clock::now();
|
||||||
auto s = binaryCache->getFile(storePathToHash(storePath) + ".ls");
|
auto s = binaryCache->getFile(std::string(baseNameOf(storePath).substr(0, StorePath::HashLen)) + ".ls");
|
||||||
if (!s)
|
if (!s)
|
||||||
printInfo("warning: no listing of %s in binary cache", storePath);
|
printInfo("warning: no listing of %s in binary cache", storePath);
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -32,13 +32,13 @@
|
||||||
$(pkg-config --libs nix-main) \
|
$(pkg-config --libs nix-main) \
|
||||||
$(pkg-config --libs nix-expr) \
|
$(pkg-config --libs nix-expr) \
|
||||||
$(pkg-config --libs nix-store) \
|
$(pkg-config --libs nix-store) \
|
||||||
-lsqlite3 -lgc -lnixrust
|
-lsqlite3 -lgc
|
||||||
|
|
||||||
g++ -Os -g ${./index-debuginfo.cc} -Wall -std=c++14 -o $out/bin/index-debuginfo -I . \
|
g++ -Os -g ${./index-debuginfo.cc} -Wall -std=c++14 -o $out/bin/index-debuginfo -I . \
|
||||||
$(pkg-config --cflags nix-main) \
|
$(pkg-config --cflags nix-main) \
|
||||||
$(pkg-config --libs nix-main) \
|
$(pkg-config --libs nix-main) \
|
||||||
$(pkg-config --libs nix-store) \
|
$(pkg-config --libs nix-store) \
|
||||||
-lsqlite3 -lnixrust
|
-lsqlite3
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include "thread-pool.hh"
|
#include "thread-pool.hh"
|
||||||
#include "sqlite.hh"
|
#include "sqlite.hh"
|
||||||
#include "binary-cache-store.hh"
|
#include "binary-cache-store.hh"
|
||||||
|
#include "logging.hh"
|
||||||
|
|
||||||
#include "file-cache.hh"
|
#include "file-cache.hh"
|
||||||
|
|
||||||
|
@ -40,7 +41,7 @@ void mainWrapped(int argc, char * * argv)
|
||||||
Path nixpkgsPath = argv[5];
|
Path nixpkgsPath = argv[5];
|
||||||
|
|
||||||
settings.readOnlyMode = true;
|
settings.readOnlyMode = true;
|
||||||
settings.showTrace = true;
|
loggerSettings.showTrace = true;
|
||||||
|
|
||||||
auto localStore = openStore();
|
auto localStore = openStore();
|
||||||
std::string binaryCacheUri = argv[3];
|
std::string binaryCacheUri = argv[3];
|
||||||
|
@ -121,7 +122,7 @@ void mainWrapped(int argc, char * * argv)
|
||||||
}
|
}
|
||||||
} catch (AssertionError & e) {
|
} catch (AssertionError & e) {
|
||||||
} catch (Error & e) {
|
} catch (Error & e) {
|
||||||
e.addPrefix(fmt("in package ‘%s’: ", package.attrPath));
|
e.addTrace({}, hintfmt("in package '%s': ", package.attrPath));
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue