https://github.com/euank/yaml2nix
https://github.com/euank/yaml2nix
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/euank/yaml2nix
- Owner: euank
- License: gpl-3.0
- Created: 2020-08-12T05:20:36.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-01-04T09:52:30.000Z (over 1 year ago)
- Last Synced: 2025-03-24T20:51:12.872Z (about 1 year ago)
- Language: Nix
- Size: 85 KB
- Stars: 30
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - euank/yaml2nix
README
# yaml2nix
yaml2nix is a command line tool to convert yaml into a nix expression.
## Usage
Currently, `yaml2nix` takes a single argument, the yaml file to convert, and
outputs the nix expression on stdout.
If the input yaml file cannot be parsed, it will exit non-zero and print an
appropriate error message.
With flake enabled Nix, run:
```
nix run github:euank/yaml2nix $PATH_TO_YAML_FILE
```