query
On this page

parseFlakeRef

lib.flakes.parseFlakeRef

Primop
Experimental
Docs pulled from | This Revision | about 2 hours ago

Takes 1 arguments

flake-ref


Parse a flake reference, and return its exploded form.

For example:

builtins.parseFlakeRef "github:NixOS/nixpkgs/23.05?dir=lib"

evaluates to:

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

Noogle detected

Aliases

Implementation

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