rnix 0.14.0

A Nix parser written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  # Various path types in one file
  abs = /nix/store/hash-name-1.0.0;
  rel = ./foo/bar/../baz;
  home = ~/.config/nixpkgs/overlays;
  search = <nixpkgs/lib/systems>;
  
  # Paths with special characters
  withNumbers = /usr/lib64;
  withDots = ./foo.bar.baz;
  withPlus = ./foo+bar;
  withDash = /nix-store/package;
  
  # Path operations
  combined = /foo + ./bar;
  inList = [ /a ./b ~/c <d> ];
}