easy-dhall-nix/README.md

37 lines
939 B
Markdown
Raw Normal View History

2018-12-08 12:34:40 +01:00
# Easy Dhall Nix
[![Build Status](https://travis-ci.org/justinwoo/easy-dhall-nix.svg?branch=master)](https://travis-ci.org/justinwoo/easy-dhall-nix)
2018-12-08 13:44:09 +01:00
Derivations for easily downloading Dhall binaries and putting them to use.
2018-12-08 12:34:40 +01:00
## Trial
You cn get an appropriate nix-shell with the binaries installed by first testing this with:
```
2018-12-08 13:57:01 +01:00
nix-shell
2018-12-08 12:34:40 +01:00
```
## Installation
2018-12-08 13:43:05 +01:00
You might choose to simply copy the derivations from this repository, or you can fetch the git/Github repo using the various helpers:
2018-12-08 13:57:01 +01:00
```
2018-12-08 13:43:05 +01:00
> nix repl
nix-repl> pkgs = import <nixpkgs> {}
nix-repl> drvs = import (pkgs.fetchFromGitHub {
owner = "justinwoo";
repo = "easy-dhall-nix";
2018-12-08 13:57:01 +01:00
rev = # some REV
sha256 = # some SHA
2018-12-08 13:43:05 +01:00
}) {}
nix-repl> drvs.dhall-simple
«derivation /nix/store/qz29jbplpmlvsbmq05084dh1fbs8sl0h-dhall-simple.drv»
```
2018-12-08 12:34:40 +01:00
## NixOS: Contributors needed
If you want to use this in NixOS, then please supply some PRs for the appropriate patchelf voodoo.