eask2nix
Convert
Eask
into Nix expressions
🚩 Prerequisite Tools
You will need the following tools in order to run this tool!
💾 Installation
Easiest way to install this tool is install it with npm
:
$ npm install -g eask2nix
Alternatively, you can install it from source:
# clone it
$ git cloen https://github.com/nix-community/eask2nix
# navigate to project root
$ cd eask2nix
# install all dependencies
$ npm install
# export to environment $PATH
export PATH="$HOME/eask2nix/bin:$PATH"
# give execute permissions
chmod 777 /path/to/eask2nix/bin/eask2nix
Or download binaries from our releases page.
# unzip binaires
unzip eask2nix_0.1.0_[linux/macos]-[arm64/x64].zip
# export to environment $PATH
export PATH="$HOME/eask2nix:$PATH"
🔧 Usage
To generate default.nix
for a set of dependencies:
# navigate to your elisp project
$ cd your-elisp-project/
# make sure the Eask exists, to create one do `eask init`
$ cat Eask # or Easkfile
# generate the Nix expressions from current Eask-file
$ eask2nix generate
P.S. eask2nix generate
will only take the current loaded Eask-file.
📝 Todo list
- [ ] Handle dependencies in generated Nix expressions
Contact
Problems and questions should go to GitHub issues.