Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rossjones/nifty
helpful tools for when I need to create an Elixir NIF .
https://github.com/rossjones/nifty
Last synced: 2 months ago
JSON representation
helpful tools for when I need to create an Elixir NIF .
- Host: GitHub
- URL: https://github.com/rossjones/nifty
- Owner: rossjones
- License: other
- Created: 2015-06-11T16:48:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-19T22:04:02.000Z (about 9 years ago)
- Last Synced: 2024-10-06T09:48:24.770Z (3 months ago)
- Language: Elixir
- Homepage:
- Size: 229 KB
- Stars: 28
- Watchers: 4
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Helper script for setting up the boilerplate required when writing a NIF. (Native Implemented Functions)
- fucking-awesome-elixir - nifty - Helper script for setting up the boilerplate required when writing a NIF. (Native Implemented Functions)
- awesome-elixir - nifty - Helper script for setting up the boilerplate required when writing a NIF. (Native Implemented Functions)
README
Nifty
=====Helper script for setting up the boilerplate required when writing a NIF. I'm using it by installing as an archive, but I guess you *could* install it as a dep.
## Install
```elixir
git clone [email protected]:rossjones/nifty.git
cd nifty
mix do archive.build, archive.install
```## Commands
```elixir
# Creates a skeleton Makefile, c source and Elxiir module.
mix nifty.gen --library hello --module MyApp.Nif
```The compile and clean tasks should happen when your normal ```mix compile``` and ```mix clean``` calls happen.
## Extra info
How to set up compilation for make was found at which was very helpful in getting started. The mix tasks are derived from