query
On this page

flakeRefToString

lib.flakeRefToString

Primop
Experimental
Docs pulled from | This Revision | 12 minutes 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.

Implementation

The following is the current implementation of this function.

flakeRefToString