mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-28 08:36:15 +02:00
New nix profile list
UI
Also includes a compatibility hack for Home Manager
This commit is contained in:
parent
16eae95adf
commit
b4c2191838
1 changed files with 7 additions and 3 deletions
|
@ -542,9 +542,13 @@ struct CmdProfileList : virtual EvalCommand, virtual StoreCommand, MixDefaultPro
|
|||
|
||||
for (size_t i = 0; i < manifest.elements.size(); ++i) {
|
||||
auto & element(manifest.elements[i]);
|
||||
logger->cout("%03d %s\t%s", i,
|
||||
if (element.source) {
|
||||
logger->cout("%03d:\n\tInstallable: %s\n\tStore paths: %s", i,
|
||||
element.source ? element.source->originalRef.to_string() + "#" + element.source->attrPath + printOutputsSpec(element.source->outputs) : "-",
|
||||
concatStringsSep(" ", store->printStorePathSet(element.storePaths)));
|
||||
} else {
|
||||
logger->cout("%03d - - %s", i, concatStringsSep(" ", store->printStorePathSet(element.storePaths)));
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue