forked from lix-project/nix-eval-jobs
fix commandline parsing for nix 2.19
This commit is contained in:
parent
c240e61481
commit
d4eeecf6b2
|
@ -43,7 +43,7 @@ using namespace nlohmann;
|
||||||
#elif __clang__
|
#elif __clang__
|
||||||
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
||||||
#endif
|
#endif
|
||||||
struct MyArgs : MixEvalArgs, MixCommonArgs {
|
struct MyArgs : virtual MixEvalArgs, virtual MixCommonArgs, virtual RootArgs {
|
||||||
std::string releaseExpr;
|
std::string releaseExpr;
|
||||||
Path gcRootsDir;
|
Path gcRootsDir;
|
||||||
bool flake = false;
|
bool flake = false;
|
||||||
|
@ -545,7 +545,7 @@ int main(int argc, char **argv) {
|
||||||
initNix();
|
initNix();
|
||||||
initGC();
|
initGC();
|
||||||
|
|
||||||
myArgs.parseCmdline(argvToStrings(argc, argv));
|
myArgs.parseCmdline(argvToStrings(argc, argv), 0);
|
||||||
|
|
||||||
/* FIXME: The build hook in conjunction with import-from-derivation is
|
/* FIXME: The build hook in conjunction with import-from-derivation is
|
||||||
* causing "unexpected EOF" during eval */
|
* causing "unexpected EOF" during eval */
|
||||||
|
|
Loading…
Reference in a new issue