name: url-literals internalName: UrlLiterals timeline:


URL literals are unquoted string literals containing URLs directly as part of the Nix language syntax. This was deprecated because it needlessly complicates the syntax for the little benefit of merely saving two characters. Additionally, it is a cause of inconsistencies in the language: x:x is a (URL) string but x: x and _:x are functions.

To fix this, put the URL in string quotation marks instead: { url = https://github.com/NixOS/nixpkgs; }{ url = "https://github.com/NixOS/nixpkgs"; }