diff options
-rw-r--r-- | .travis.yml | 7 | ||||
-rw-r--r-- | default.nix | 11 | ||||
-rw-r--r-- | dhall-1.26.1.nix | 22 |
3 files changed, 14 insertions, 26 deletions
diff --git a/.travis.yml b/.travis.yml index d287c26..92f6295 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -1,13 +1,12 @@ | |||
1 | --- | 1 | --- |
2 | sudo: false | 2 | sudo: false |
3 | language: nix | 3 | language: nix |
4 | nix: 2.2.1 | 4 | nix: 2.3.4 |
5 | env: | 5 | env: |
6 | - NIX_PATH=nixpkgs=channel:nixos-19.09 | 6 | - NIX_PATH=nixpkgs=channel:nixos-20.03 |
7 | 7 | ||
8 | install: | 8 | install: |
9 | - nix-env -iA pkgs.python37Packages.ansible-lint pkgs.python37Packages.ansible pkgs.shellcheck -f '<nixpkgs>' | 9 | - nix-env -i -f ./default.nix |
10 | - nix-env -if ./dhall-1.26.1.nix | ||
11 | 10 | ||
12 | # Check ansible version | 11 | # Check ansible version |
13 | - ansible --version | 12 | - ansible --version |
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..15ee01e --- /dev/null +++ b/default.nix | |||
@@ -0,0 +1,11 @@ | |||
1 | { pkgs ? import <nixpkgs> {} }: | ||
2 | |||
3 | with pkgs; | ||
4 | { | ||
5 | inherit shellcheck | ||
6 | ansible_2_8; | ||
7 | inherit (python37Packages) | ||
8 | ansible-lint; | ||
9 | inherit (haskellPackages) | ||
10 | dhall_1_27_0; | ||
11 | } | ||
diff --git a/dhall-1.26.1.nix b/dhall-1.26.1.nix deleted file mode 100644 index 918a528..0000000 --- a/dhall-1.26.1.nix +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | { pkgs ? import <nixpkgs> {} }: with pkgs; | ||
2 | |||
3 | let | ||
4 | mkVersion = | ||
5 | version: sha256: | ||
6 | stdenv.mkDerivation { | ||
7 | name = "dhall-${version}"; | ||
8 | inherit version; | ||
9 | src = fetchurl { | ||
10 | url = "https://github.com/dhall-lang/dhall-haskell/releases/download/${version}/dhall-${version}-x86_64-linux.tar.bz2"; | ||
11 | inherit sha256; | ||
12 | }; | ||
13 | unpackPhase = '' | ||
14 | tar -xjf $src | ||
15 | ''; | ||
16 | installPhase = '' | ||
17 | mkdir -p $out/bin | ||
18 | mv bin/dhall $out/bin/ | ||
19 | ''; | ||
20 | }; | ||
21 | in | ||
22 | mkVersion "1.26.1" "0sl4r3mfairgd6kn26hs1r1lkh8rn992grd73078rhqf5w90ag05" | ||