@@ -1,15 +1,28 @@
1−{ pkgs ? import <nixpkgs> { config.allowUnfree = true; }
2−, src ? builtins.filterSource (path: type:
3− type != "unknown" &&
4− baseNameOf path != ".git" &&
5− baseNameOf path != "result" &&
6− baseNameOf path != "dist") ./.
7−, servant ? import ../servant {}
1+{ mkDerivation, aeson, attoparsec, base, bytestring
2+, bytestring-conversion, directory, either, exceptions, hspec
3+, hspec-wai, http-types, network, network-uri, parsec, QuickCheck
4+, safe, servant, split, stdenv, string-conversions, system-filepath
5+, temporary, text, transformers, wai, wai-app-static, wai-extra
6+, warp
87}:
9−pkgs.haskellPackages.buildLocalCabalWithArgs {
10− name = "servant-server";
11− inherit src;
12− args = {
13− inherit servant;
14− };
8+mkDerivation {
9+ pname = "servant-server";
10+ version = "0.2.4";
11+ src = ./.;
12+ isLibrary = true;
13+ isExecutable = true;
14+ buildDepends = [
15+ aeson attoparsec base bytestring either http-types network-uri safe
16+ servant split string-conversions system-filepath text transformers
17+ wai wai-app-static warp
18+ ];
19+ testDepends = [
20+ aeson base bytestring bytestring-conversion directory either
21+ exceptions hspec hspec-wai http-types network parsec QuickCheck
22+ servant string-conversions temporary text transformers wai
23+ wai-extra warp
24+ ];
25+ homepage = "http://haskell-servant.github.io/";
26+ description = "A family of combinators for defining webservices APIs and serving them";
27+ license = stdenv.lib.licenses.bsd3;
1528}