• she/her

Principal engineer at Mercury. I've authored the Dhall configuration language, the Haskell for all blog, and countless packages and keynote presentations.

I'm a midwife to the hidden beauty in everything.

💖 @wiredaemon


discord
Gabriella439
discord server
discord.gg/XS5ZDZ8nnp
location
bay area
private page
cohost.org/newmoon

lexi
@lexi
def open-nix [file: path] {
    nix eval --json -f $file | from json
}

def call-nix [expr: string] {
    echo expr | nix eval --json --impure -f - | from json
}

def 'from nix' [] {
    nix eval --json --impure -f - | from json
}

def 'to nix' [] {
    let escaped = (
        $in |
        to json |
        str replace -a "\\\\" "\\\\" |
        str replace -a "\'" "\\\'" |
        str replace -a "\"" "\\\"" |
        str replace -a "\\$" "\\$"
    )
    $"builtins.fromJSON \"($escaped)\""
}

You must log in to comment.