on master help sign in
wget nix-cabal
4f47effVladislav Zavialov
.travis.yml+4−1
@@ -5,8 +5,11 @@ env:
5 - HC=ghc844
5 - HC=ghc844
6 - HC=ghc861
6 - HC=ghc861
7
7
8−script:
8+before_install:
9+ - curl https://raw.githubusercontent.com/int-index/nix-cabal/master/nix-cabal -o nix-cabal && chmod u+x nix-cabal
9 - travis_retry ./nix-cabal new-update
10 - travis_retry ./nix-cabal new-update
11+
12+script:
10 - ./nix-cabal new-test ether:regression
13 - ./nix-cabal new-test ether:regression
11 - ./nix-cabal new-bench ether:bench
14 - ./nix-cabal new-bench ether:bench
12
15
nix-cabaldeleted−12
@@ -1,12 +0,0 @@
1−#!/usr/bin/env bash
2−
3−set -e
4−
5−if [ -z "$HC" ]; then
6− ARG_HC=""
7−else
8− ARG_HC="--argstr hc $HC"
9−fi
10−
11−CMD="cabal $@"
12−nix-shell --pure $ARG_HC --run "$CMD"
shell.nix+2−1
@@ -13,8 +13,9 @@ pkgs.stdenv.mkDerivation rec {
13 ];
13 ];
14 shellHook = ''
14 shellHook = ''
15 export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath buildInputs}:$LD_LIBRARY_PATH
15 export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath buildInputs}:$LD_LIBRARY_PATH
16+ export LANG=en_US.UTF-8
16 '';
17 '';
17− LOCALE_ARCHIVES =
18+ LOCALE_ARCHIVE =
18 if pkgs.stdenv.isLinux
19 if pkgs.stdenv.isLinux
19 then "${pkgs.glibcLocales}/lib/locale/locale-archive"
20 then "${pkgs.glibcLocales}/lib/locale/locale-archive"
20 else "";
21 else "";