1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-05 04:01:47 +02:00

nix flake info: Show resolved URL

This is useful for finding out what a registry lookup resolves to, e.g

  $ nix flake info patchelf
  Resolved URL:  github:NixOS/patchelf
  Locked URL:    github:NixOS/patchelf/cd7955af31698c571c30b7a0f78e59fd624d0229
This commit is contained in:
Eelco Dolstra 2020-04-06 14:56:13 +02:00
parent ce3173edc1
commit 68b43e01dd
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 13 additions and 6 deletions

View file

@ -28,6 +28,7 @@ struct FlakeInput
struct Flake
{
FlakeRef originalRef;
FlakeRef resolvedRef;
FlakeRef lockedRef;
std::optional<std::string> description;
std::shared_ptr<const fetchers::Tree> sourceInfo;