mirror of
https://github.com/justinwoo/easy-dhall-nix.git
synced 2024-11-26 21:19:42 +01:00
update exports and test
This commit is contained in:
parent
36bbf92c36
commit
10249d9fa8
4 changed files with 12 additions and 19 deletions
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
||||||
default: test
|
default: test
|
||||||
|
|
||||||
test:
|
test:
|
||||||
nix-shell -A shell --pure --run './test.bash'
|
nix-shell --pure --run './test.bash'
|
||||||
|
|
|
@ -9,22 +9,22 @@ Derivations for easily downloading Dhall binaries and putting them to use.
|
||||||
You cn get an appropriate nix-shell with the binaries installed by first testing this with:
|
You cn get an appropriate nix-shell with the binaries installed by first testing this with:
|
||||||
|
|
||||||
```
|
```
|
||||||
nix-shell -A shell
|
nix-shell
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
You might choose to simply copy the derivations from this repository, or you can fetch the git/Github repo using the various helpers:
|
You might choose to simply copy the derivations from this repository, or you can fetch the git/Github repo using the various helpers:
|
||||||
|
|
||||||
```nix
|
```
|
||||||
> nix repl
|
> nix repl
|
||||||
nix-repl> pkgs = import <nixpkgs> {}
|
nix-repl> pkgs = import <nixpkgs> {}
|
||||||
|
|
||||||
nix-repl> drvs = import (pkgs.fetchFromGitHub {
|
nix-repl> drvs = import (pkgs.fetchFromGitHub {
|
||||||
owner = "justinwoo";
|
owner = "justinwoo";
|
||||||
repo = "easy-dhall-nix";
|
repo = "easy-dhall-nix";
|
||||||
rev = "87406a76409c16bbd7511e397cfc52e1c58954e3";
|
rev = # some REV
|
||||||
sha256 = "1sjpckyhvlks5yls0qqfd0iaf7pxp1sp3dikqh41lg6xsxx6lqhi";
|
sha256 = # some SHA
|
||||||
}) {}
|
}) {}
|
||||||
|
|
||||||
nix-repl> drvs.dhall-simple
|
nix-repl> drvs.dhall-simple
|
||||||
|
|
15
default.nix
15
default.nix
|
@ -1,21 +1,8 @@
|
||||||
{ pkgs ? import <nixpkgs> {} }:
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
|
||||||
let
|
{
|
||||||
dhall-simple = import ./dhall-simple.nix {};
|
dhall-simple = import ./dhall-simple.nix {};
|
||||||
dhall-json-simple = import ./dhall-json-simple.nix {};
|
dhall-json-simple = import ./dhall-json-simple.nix {};
|
||||||
dhall-bash-simple = import ./dhall-bash-simple.nix {};
|
dhall-bash-simple = import ./dhall-bash-simple.nix {};
|
||||||
dhall-text-simple = import ./dhall-text-simple.nix {};
|
dhall-text-simple = import ./dhall-text-simple.nix {};
|
||||||
in {
|
|
||||||
inherit dhall-simple;
|
|
||||||
|
|
||||||
shell = pkgs.stdenv.mkDerivation {
|
|
||||||
name = "easy-dhall-nix-shell";
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
dhall-simple
|
|
||||||
dhall-json-simple
|
|
||||||
dhall-bash-simple
|
|
||||||
dhall-text-simple
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
6
shell.nix
Normal file
6
shell.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
|
||||||
|
pkgs.stdenv.mkDerivation {
|
||||||
|
name = "easy-dhall-nix-shell";
|
||||||
|
buildInputs = builtins.attrValues (import ./default.nix { inherit pkgs; });
|
||||||
|
}
|
Loading…
Reference in a new issue