---
sudo: false
language: nix
-nix: 2.2.1
+nix: 2.3.4
env:
- - NIX_PATH=nixpkgs=channel:nixos-19.09
+ - NIX_PATH=nixpkgs=channel:nixos-20.03
install:
- - nix-env -iA pkgs.python37Packages.ansible-lint pkgs.python37Packages.ansible pkgs.shellcheck -f '<nixpkgs>'
- - nix-env -if ./dhall-1.26.1.nix
+ - nix-env -i -f ./default.nix
# Check ansible version
- ansible --version
--- /dev/null
+{ pkgs ? import <nixpkgs> {} }:
+
+with pkgs;
+{
+ inherit shellcheck
+ ansible_2_8;
+ inherit (python37Packages)
+ ansible-lint;
+ inherit (haskellPackages)
+ dhall_1_27_0;
+}
+++ /dev/null
-{ pkgs ? import <nixpkgs> {} }: with pkgs;
-
-let
- mkVersion =
- version: sha256:
- stdenv.mkDerivation {
- name = "dhall-${version}";
- inherit version;
- src = fetchurl {
- url = "https://github.com/dhall-lang/dhall-haskell/releases/download/${version}/dhall-${version}-x86_64-linux.tar.bz2";
- inherit sha256;
- };
- unpackPhase = ''
- tar -xjf $src
- '';
- installPhase = ''
- mkdir -p $out/bin
- mv bin/dhall $out/bin/
- '';
- };
-in
- mkVersion "1.26.1" "0sl4r3mfairgd6kn26hs1r1lkh8rn992grd73078rhqf5w90ag05"