query
On this page

flakeRefToString

builtins.flakeRefToString

Primop
Experimental
Docs pulled from | This Revision | 3 days ago


Nix manual

Takes 1 arguments

attrs

Convert a flake reference from attribute set format to URL format.

For example:

builtins.flakeRefToString {
  dir = "lib"; owner = "NixOS"; ref = "23.05"; repo = "nixpkgs"; type = "github";
}

evaluates to

"github:NixOS/nixpkgs/23.05?dir=lib"

Noogle detected

Aliases

Implementation

This function is implemented in c++ and is part of the native nix runtime.