21 lines
581 B
Nix
21 lines
581 B
Nix
{ 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 {};
|
|
};
|
|
}
|