Add default.nix and make travis use 0.2 branches.
This commit is contained in:
parent
ec3bebee69
commit
7b8ff2e513
3 changed files with 23 additions and 2 deletions
|
@ -4,7 +4,7 @@ ghc:
|
|||
- 7.8
|
||||
|
||||
before_install:
|
||||
- git clone https://github.com/haskell-servant/servant.git
|
||||
- git clone -b servant-0.2 https://github.com/haskell-servant/servant.git
|
||||
- cabal sandbox init
|
||||
- cabal sandbox add-source servant/
|
||||
|
||||
|
|
21
default.nix
Normal file
21
default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ pkgs ? import <nixpkgs> { config.allowUnfree = true; }
|
||||
, src ? builtins.filterSource (path: type:
|
||||
type != "unknown" &&
|
||||
baseNameOf path != ".git" &&
|
||||
baseNameOf path != "result" &&
|
||||
baseNameOf path != "dist") ./.
|
||||
}:
|
||||
let
|
||||
servant02 = pkgs.fetchgit {
|
||||
url = https://github.com/haskell-servant/servant.git;
|
||||
rev = "refs/heads/servant-0.2";
|
||||
sha256 = "0mcn9d8hnijws1p8y6h3r0298f1x8mya2nshyi46mprrj2kn8wmm";
|
||||
};
|
||||
in
|
||||
pkgs.haskellPackages.buildLocalCabalWithArgs {
|
||||
name = "servant-client";
|
||||
inherit src;
|
||||
args = {
|
||||
servant = import servant02 {};
|
||||
};
|
||||
}
|
|
@ -33,7 +33,7 @@ library
|
|||
, bytestring
|
||||
, hashable
|
||||
, lens
|
||||
, servant >= 0.2.1
|
||||
, servant >= 0.2.1 && < 0.3
|
||||
, string-conversions
|
||||
, system-filepath
|
||||
, text
|
||||
|
|
Loading…
Reference in a new issue