A tool compiles all of nixpkgs into TypeScript and matches Nix's drvPaths exactly

Nixpkgs for the Front End Impaired

A tool compiles all of nixpkgs into TypeScript and matches Nix's drvPaths exactly

jinx is a transpiler that turns every .nix file into a readable TypeScript module, preserving thunks, derivation strings, and drvPaths. Across all 231,777 nixpkgs attributes, 229,063 produce byte-identical drvPaths to Nix, with zero discrepancies. The goal isn't speed — it's giving the TypeScript ecosystem access to twenty years of packaging work, enabling profiling, editor support, breakpoints, and browser evaluation.

The store model is the great idea. Any similar tool built on the same model will have the same magical properties of reproducibility, and hermeticity.
  1. tom_alexander

    > Ask nixpkgs a question in a loop. Interrogate and explore nixpkgs in a REPL

    nix repl --expr 'builtins.getFlake "github:NixOS/nixpkgs/nixos-unstable"'

    nix-repl> builtins.filter (name: lib.licenses."${name}" ? spdxId && lib.strings.hasPrefix "GPL" lib.licenses."${name}".spdxId) (builtins.attrNames lib.licenses)

    [

    "gpl1Only"

    "gpl1Plus"

    "gpl2"

    "gpl2Only"

    "gpl2Plus"

    "gpl3"

    "gpl3Only"

    "gpl3Plus"

    ]

  2. easygenes

    Please at least add "(Nix transpliled to typescript)" to the title so it's clear what we get.

  3. lorecoeur

    Funnily enough, it might very well be a morale failure. Just not a moral one.

More from this day

2026-10-29