mirror of
https://github.com/NixOS/nix
synced 2025-07-03 02:01:48 +02:00
* Use a proper namespace.
* Optimise header file usage a bit. * Compile the parser as C++.
This commit is contained in:
parent
aab8812732
commit
75068e7d75
61 changed files with 650 additions and 268 deletions
|
@ -2,7 +2,12 @@
|
|||
#define __DERIVATIONS_H
|
||||
|
||||
#include "aterm.hh"
|
||||
#include "store.hh"
|
||||
#include "hash.hh"
|
||||
|
||||
#include <map>
|
||||
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
||||
/* Extension of derivations in the Nix store. */
|
||||
|
@ -27,13 +32,13 @@ struct DerivationOutput
|
|||
}
|
||||
};
|
||||
|
||||
typedef map<string, DerivationOutput> DerivationOutputs;
|
||||
typedef std::map<string, DerivationOutput> DerivationOutputs;
|
||||
|
||||
/* For inputs that are sub-derivations, we specify exactly which
|
||||
output IDs we are interested in. */
|
||||
typedef map<Path, StringSet> DerivationInputs;
|
||||
typedef std::map<Path, StringSet> DerivationInputs;
|
||||
|
||||
typedef map<string, string> StringPairs;
|
||||
typedef std::map<string, string> StringPairs;
|
||||
|
||||
struct Derivation
|
||||
{
|
||||
|
@ -63,5 +68,8 @@ ATerm unparseDerivation(const Derivation & drv);
|
|||
derivations. */
|
||||
bool isDerivation(const string & fileName);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif /* !__DERIVATIONS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue