mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
nix search: Search legacyPackages recursively
This commit is contained in:
parent
0469795978
commit
b4e23dcd9e
6 changed files with 76 additions and 22 deletions
|
@ -41,6 +41,7 @@ enum AttrType {
|
|||
Missing = 3,
|
||||
Misc = 4,
|
||||
Failed = 5,
|
||||
Bool = 6,
|
||||
};
|
||||
|
||||
struct placeholder_t {};
|
||||
|
@ -49,7 +50,7 @@ struct misc_t {};
|
|||
struct failed_t {};
|
||||
typedef uint64_t AttrId;
|
||||
typedef std::pair<AttrId, Symbol> AttrKey;
|
||||
typedef std::variant<std::vector<Symbol>, std::string, placeholder_t, missing_t, misc_t, failed_t> AttrValue;
|
||||
typedef std::variant<std::vector<Symbol>, std::string, placeholder_t, missing_t, misc_t, failed_t, bool> AttrValue;
|
||||
|
||||
class AttrCursor : public std::enable_shared_from_this<AttrCursor>
|
||||
{
|
||||
|
@ -93,6 +94,8 @@ public:
|
|||
|
||||
std::string getString();
|
||||
|
||||
bool getBool();
|
||||
|
||||
std::vector<Symbol> getAttrs();
|
||||
|
||||
bool isDerivation();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue