thufschmitt / ptyx

A type-system for Nix
BSD 3-Clause "New" or "Revised" License
96 stars 3 forks source link

Sur les crédences, au salon vide : nul ptyx \ Aboli bibelot d'inanité sonore,\ Car le Maître est allé puiser des pleurs au Styx\ Avec ce seul objet dont le Néant s'honore.

Stéphane Mallarmé, Sonnet en -yx.

ptyx

A type-system for the Nix language.

Build Status

Ptyx is an experimental implementation of a type-system for Nix. It aims at adding some type-safety to the language in the least intrusive way possible. For this purpose, the design of the type system follows two main principles:

Current status

The project is still in early stages and not usable yet.

Implemented:

How to build

With stack

Assuming you have stack installed, just run stack install to install the ptyx executable in ~/.local/bin/

With Nix

The project also comes with a stack2nix-generated nix file (which is hopefully up-to-date with the stack.yaml file). To use it, just run nix-build from the root of the repository. The executable should be in ./result/bin/ptyx