From 7a03c9594f1f0c60683658ed387a2b11834ec838 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Mon, 9 Sep 2019 11:28:42 -0400 Subject: [PATCH] try to get the right version of stack --- .circleci/config.yml | 6 +++--- shell.nix | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 shell.nix diff --git a/.circleci/config.yml b/.circleci/config.yml index cf9c30b..276e0c5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,15 +22,15 @@ jobs: - run: name: "Install Git" command: | - # Required for the checkout and run steps - nix-env -i git openssh stack + # Required for the checkout step. + nix-env -i git openssh - "checkout" - run: name: "Run Tests" command: | - stack test --coverage + nix-shell shell.nix --run "stack test --coverage" workflows: version: 2 diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..6505d05 --- /dev/null +++ b/shell.nix @@ -0,0 +1,12 @@ +let + pkgs = import (builtins.fetchTarball { + url = "https://github.com/NixOS/nixpkgs/archive/3c83ad6ac13b67101cc3e2e07781963a010c1624.tar.gz"; + sha256 = "0cdq342wrkvkyccygpp1gvwp7hhqg68hljjwld4vjixm901ayy14"; + }) {}; +in +{ pkgs ? pkgs }: +pkgs.mkShell { + buildInputs = [ + pkgs.stack + ]; +} -- GitLab