aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Bonaud <paul.bonaud@fretlink.com>2020-06-19 17:37:16 +0200
committerPaul Bonaud <paul.bonaud@fretlink.com>2020-06-22 15:40:01 +0200
commit3d17c5eb5948d7297112599a9ea852b5853b3260 (patch)
treef61e2238d3327073a6bae436cc63fcc36065b9cc
parente6428dceebd07b90c01b8d187a16db9772cbfdff (diff)
downloadansible-clever-3d17c5eb5948d7297112599a9ea852b5853b3260.tar.gz
ansible-clever-3d17c5eb5948d7297112599a9ea852b5853b3260.tar.zst
ansible-clever-3d17c5eb5948d7297112599a9ea852b5853b3260.zip
core: define nix env for travis with a unique default.nix file
-rw-r--r--.travis.yml7
-rw-r--r--default.nix11
-rw-r--r--dhall-1.26.1.nix22
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---
2sudo: false 2sudo: false
3language: nix 3language: nix
4nix: 2.2.1 4nix: 2.3.4
5env: 5env:
6 - NIX_PATH=nixpkgs=channel:nixos-19.09 6 - NIX_PATH=nixpkgs=channel:nixos-20.03
7 7
8install: 8install:
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
3with 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
3let
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 };
21in
22 mkVersion "1.26.1" "0sl4r3mfairgd6kn26hs1r1lkh8rn992grd73078rhqf5w90ag05"