mirror of
https://github.com/justinwoo/easy-dhall-nix.git
synced 2024-11-26 21:19:42 +01:00
Merge pull request #12 from justinwoo/dont-run-darwin
don't run dhall-nix on osx
This commit is contained in:
commit
01844fa08e
3 changed files with 25 additions and 7 deletions
6
nixpkgs.nix
Normal file
6
nixpkgs.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import (
|
||||||
|
builtins.fetchTarball {
|
||||||
|
url = "https://github.com/nixos/nixpkgs/archive/a7bf8161fa834a602278c15fcbdd955656b3aed8.tar.gz";
|
||||||
|
sha256 = "0lzd35niw0j8qy4mhglvqwv5qwyvdb9mhv8hpmn73ym57r92i4p1";
|
||||||
|
}
|
||||||
|
)
|
16
shell.nix
16
shell.nix
|
@ -1,9 +1,17 @@
|
||||||
let
|
let
|
||||||
pkgs = import <nixpkgs> {};
|
pkgs = import ./nixpkgs.nix {};
|
||||||
|
default = import ./default.nix { inherit pkgs; };
|
||||||
default = import ./default.nix {};
|
|
||||||
|
|
||||||
in
|
in
|
||||||
|
with default;
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
buildInputs = builtins.attrValues default;
|
buildInputs = [
|
||||||
|
dhall-simple
|
||||||
|
dhall-json-simple
|
||||||
|
dhall-bash-simple
|
||||||
|
] ++ (
|
||||||
|
if pkgs.stdenv.isDarwin then [] else [
|
||||||
|
dhall-nix-simple
|
||||||
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,10 @@ function test_exe () {
|
||||||
test_exe dhall;
|
test_exe dhall;
|
||||||
test_exe dhall-to-json;
|
test_exe dhall-to-json;
|
||||||
test_exe dhall-to-bash;
|
test_exe dhall-to-bash;
|
||||||
|
|
||||||
|
if [[ "$OSTYPE" != "darwin"* ]]
|
||||||
|
then
|
||||||
test_exe dhall-to-nix;
|
test_exe dhall-to-nix;
|
||||||
|
fi
|
||||||
|
|
||||||
exit $ERRORS;
|
exit $ERRORS;
|
||||||
|
|
Loading…
Reference in a new issue