diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-12-11 14:53:30 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-12-11 14:53:30 +0100 |
commit | ecb3a1afa2395c46c4ba2ec9da550f45414dbe6d (patch) | |
tree | 6d1038ee909bd1ba69948a0bc326cd5ba6824e01 /src/nix/installables.hh | |
parent | ab88f4bbd4117db458a79f0a02a4de7bf7931f4c (diff) | |
parent | f800d450b78091835ab7ca67847d76e75d877a24 (diff) |
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/nix/installables.hh')
-rw-r--r-- | src/nix/installables.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nix/installables.hh b/src/nix/installables.hh index 612c8ac92..22e4b38f9 100644 --- a/src/nix/installables.hh +++ b/src/nix/installables.hh @@ -1,6 +1,7 @@ #pragma once #include "util.hh" +#include "path.hh" #include "flake/eval-cache.hh" #include <optional> @@ -14,8 +15,8 @@ struct SourceExprCommand; struct Buildable { - Path drvPath; // may be empty - std::map<std::string, Path> outputs; + std::optional<StorePath> drvPath; + std::map<std::string, StorePath> outputs; }; typedef std::vector<Buildable> Buildables; @@ -51,7 +52,7 @@ struct Installable /* Return a value only if this installable is a store path or a symlink to it. */ - virtual std::optional<Path> getStorePath() + virtual std::optional<StorePath> getStorePath() { return {}; } |