Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fogti/nix-builtin-utils
Nix standalone builtin utils
https://github.com/fogti/nix-builtin-utils
Last synced: 26 days ago
JSON representation
Nix standalone builtin utils
- Host: GitHub
- URL: https://github.com/fogti/nix-builtin-utils
- Owner: fogti
- Created: 2022-08-17T17:33:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-25T13:29:08.000Z (over 2 years ago)
- Last Synced: 2023-03-21T21:53:12.481Z (almost 2 years ago)
- Language: Nix
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nix-builtin-utils
## Why?
nix builtins which rely on regex parsing+matching are notoriously difficult
to get right, because most regex libraries differ in what syntax they accept,
if they support backreferences, etc.So this library extracts the corresponding code from Nix' [`src/libexpr/primops.cc`](https://github.com/NixOS/nix/blob/master/src/libexpr/primops.cc)
and makes it available for usage by alternative Nix evaluator implementations.