@@ -1,15 +1,28 @@
1−{ pkgs ? import <nixpkgs> { config.allowUnfree = true; }
1+{ mkDerivation, aeson, attoparsec, base, bytestring
2−, src ? builtins.filterSource (path: type:
2+, bytestring-conversion, directory, either, exceptions, hspec
3− type != "unknown" &&
3+, hspec-wai, http-types, network, network-uri, parsec, QuickCheck
4− baseNameOf path != ".git" &&
4+, safe, servant, split, stdenv, string-conversions, system-filepath
5− baseNameOf path != "result" &&
5+, temporary, text, transformers, wai, wai-app-static, wai-extra
6− baseNameOf path != "dist") ./.
6+, warp
7−, servant ? import ../servant {}
9−pkgs.haskellPackages.buildLocalCabalWithArgs {
8+mkDerivation {
10− name = "servant-server";
9+ pname = "servant-server";
11− inherit src;
11+ src = ./.;
12− args = {
12+ isLibrary = true;
13− inherit servant;
13+ isExecutable = true;
14− };
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
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
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;