https://github.com/nix-community/eask2nix
Convert Eask into Nix expressions [maintainer=@jcs090218]
https://github.com/nix-community/eask2nix
eask eask2nix emacs nix nixos nixpkgs
Last synced: 11 months ago
JSON representation
Convert Eask into Nix expressions [maintainer=@jcs090218]
- Host: GitHub
- URL: https://github.com/nix-community/eask2nix
- Owner: nix-community
- License: gpl-3.0
- Created: 2022-09-12T06:00:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-18T12:28:45.000Z (over 1 year ago)
- Last Synced: 2024-10-29T13:49:35.611Z (over 1 year ago)
- Topics: eask, eask2nix, emacs, nix, nixos, nixpkgs
- Language: JavaScript
- Homepage:
- Size: 72.3 KB
- Stars: 9
- Watchers: 4
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: COPYING
Awesome Lists containing this project
README
[](https://www.gnu.org/licenses/gpl-3.0)
[](https://github.com/nix-community/eask2nix/releases/latest)
[](https://www.npmjs.com/package/eask2nix)
[](https://npmcharts.com/compare/eask2nix?minimal=true)
[](https://npmcharts.com/compare/eask2nix?minimal=true)
# eask2nix
> Convert `Eask` into Nix expressions
[](https://github.com/nix-community/eask2nix/actions/workflows/build.yml)
## 🚩 Prerequisite Tools
You will need the following software to run this tool!
- [emacs](https://www.gnu.org/software/emacs/download.html)
- [eask](https://emacs-eask.github.io/)
- [nix-hash](https://nixos.wiki/wiki/Nix_Hash)
## 💾 Installation
The easiest way to install this tool is to install it with `npm`:
```sh
$ npm install -g eask2nix
```
Alternatively, you can install it from the source:
```sh
# 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](https://github.com/nix-community/eask2nix/releases) page.
```sh
# 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:
```sh
# 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
- [ ] Generate installable Nix expressions
## 📞 Contact
Problems and questions should go to GitHub [issues](https://github.com/nix-community/eask2nix/issues).