diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2020-07-08 15:38:01 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2020-07-08 15:38:01 -0400 |
commit | af95a7c16b0fc0b033a7191f686fe98b2015162f (patch) | |
tree | 011186734ed386352aa3ae62e550a71a80e3ed3a /src/nix-store | |
parent | 7d8d78f06a637ba6b75285d299b07b81279c422f (diff) |
Add name to BasicDerivation
We always have a name for BasicDerivation, since we have a derivation
store path that has a name.
Diffstat (limited to 'src/nix-store')
-rw-r--r-- | src/nix-store/nix-store.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index 7d81bf54f..9a8cf0f2f 100644 --- a/src/nix-store/nix-store.cc +++ b/src/nix-store/nix-store.cc @@ -914,9 +914,9 @@ static void opServe(Strings opFlags, Strings opArgs) if (!writeAllowed) throw Error("building paths is not allowed"); - auto drvPath = store->parseStorePath(readString(in)); // informational only + auto drvPath = store->parseStorePath(readString(in)); BasicDerivation drv; - readDerivation(in, *store, drv); + readDerivation(in, *store, drv, std::string(drvPath.name())); getBuildSettings(); |