default.nix and sources files
This commit is contained in:
parent
d875c256bc
commit
019d49e782
6 changed files with 97 additions and 24 deletions
24
servant-client/default.nix
Normal file
24
servant-client/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ mkDerivation, aeson, attoparsec, base, bytestring, deepseq
|
||||||
|
, either, exceptions, hspec, http-client, http-client-tls
|
||||||
|
, http-media, http-types, HUnit, network, network-uri, QuickCheck
|
||||||
|
, safe, servant, servant-server, stdenv, string-conversions, text
|
||||||
|
, transformers, wai, warp
|
||||||
|
}:
|
||||||
|
mkDerivation {
|
||||||
|
pname = "servant-client";
|
||||||
|
version = "0.2.2";
|
||||||
|
src = ./.;
|
||||||
|
buildDepends = [
|
||||||
|
aeson attoparsec base bytestring either exceptions http-client
|
||||||
|
http-client-tls http-media http-types network-uri safe servant
|
||||||
|
string-conversions text transformers
|
||||||
|
];
|
||||||
|
testDepends = [
|
||||||
|
aeson base bytestring deepseq either hspec http-client http-media
|
||||||
|
http-types HUnit network QuickCheck servant servant-server text wai
|
||||||
|
warp
|
||||||
|
];
|
||||||
|
homepage = "http://haskell-servant.github.io/";
|
||||||
|
description = "automatical derivation of querying functions for servant webservices";
|
||||||
|
license = stdenv.lib.licenses.bsd3;
|
||||||
|
}
|
|
@ -12,7 +12,7 @@ mkDerivation {
|
||||||
aeson base bytestring hashable http-media lens servant
|
aeson base bytestring hashable http-media lens servant
|
||||||
string-conversions text unordered-containers
|
string-conversions text unordered-containers
|
||||||
];
|
];
|
||||||
testDepends = [ aeson base hspec lens servant ];
|
testDepends = [ aeson base hspec servant string-conversions ];
|
||||||
homepage = "http://haskell-servant.github.io/";
|
homepage = "http://haskell-servant.github.io/";
|
||||||
description = "generate API docs for your servant webservice";
|
description = "generate API docs for your servant webservice";
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = stdenv.lib.licenses.bsd3;
|
||||||
|
|
21
servant-jquery/default.nix
Normal file
21
servant-jquery/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ mkDerivation, aeson, base, charset, filepath, hspec
|
||||||
|
, hspec-expectations, language-ecmascript, lens, servant
|
||||||
|
, servant-server, stdenv, stm, text, transformers, warp
|
||||||
|
}:
|
||||||
|
mkDerivation {
|
||||||
|
pname = "servant-jquery";
|
||||||
|
version = "0.2.2";
|
||||||
|
src = ./.;
|
||||||
|
isLibrary = true;
|
||||||
|
isExecutable = true;
|
||||||
|
buildDepends = [
|
||||||
|
aeson base charset filepath lens servant servant-server stm text
|
||||||
|
transformers warp
|
||||||
|
];
|
||||||
|
testDepends = [
|
||||||
|
base hspec hspec-expectations language-ecmascript lens servant
|
||||||
|
];
|
||||||
|
homepage = "http://haskell-servant.github.io/";
|
||||||
|
description = "Automatically derive (jquery) javascript functions to query servant webservices";
|
||||||
|
license = stdenv.lib.licenses.bsd3;
|
||||||
|
}
|
|
@ -1,15 +1,28 @@
|
||||||
{ pkgs ? import <nixpkgs> { config.allowUnfree = true; }
|
{ mkDerivation, aeson, attoparsec, base, bytestring
|
||||||
, src ? builtins.filterSource (path: type:
|
, bytestring-conversion, directory, either, exceptions, hspec
|
||||||
type != "unknown" &&
|
, hspec-wai, http-types, network, network-uri, parsec, QuickCheck
|
||||||
baseNameOf path != ".git" &&
|
, safe, servant, split, stdenv, string-conversions, system-filepath
|
||||||
baseNameOf path != "result" &&
|
, temporary, text, transformers, wai, wai-app-static, wai-extra
|
||||||
baseNameOf path != "dist") ./.
|
, warp
|
||||||
, servant ? import ../servant {}
|
|
||||||
}:
|
}:
|
||||||
pkgs.haskellPackages.buildLocalCabalWithArgs {
|
mkDerivation {
|
||||||
name = "servant-server";
|
pname = "servant-server";
|
||||||
inherit src;
|
version = "0.2.4";
|
||||||
args = {
|
src = ./.;
|
||||||
inherit servant;
|
isLibrary = true;
|
||||||
};
|
isExecutable = true;
|
||||||
|
buildDepends = [
|
||||||
|
aeson attoparsec base bytestring either http-types network-uri safe
|
||||||
|
servant split string-conversions system-filepath text transformers
|
||||||
|
wai wai-app-static warp
|
||||||
|
];
|
||||||
|
testDepends = [
|
||||||
|
aeson base bytestring bytestring-conversion directory either
|
||||||
|
exceptions hspec hspec-wai http-types network parsec QuickCheck
|
||||||
|
servant string-conversions temporary text transformers wai
|
||||||
|
wai-extra warp
|
||||||
|
];
|
||||||
|
homepage = "http://haskell-servant.github.io/";
|
||||||
|
description = "A family of combinators for defining webservices APIs and serving them";
|
||||||
|
license = stdenv.lib.licenses.bsd3;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,22 @@
|
||||||
{ pkgs ? import <nixpkgs> { config.allowUnfree = true; }
|
{ mkDerivation, aeson, attoparsec, base, bytestring
|
||||||
, src ? builtins.filterSource (path: type:
|
, bytestring-conversion, case-insensitive, doctest, filemanip
|
||||||
type != "unknown" &&
|
, hspec, http-media, http-types, network-uri, parsec, QuickCheck
|
||||||
baseNameOf path != ".git" &&
|
, quickcheck-instances, stdenv, string-conversions, text, url
|
||||||
baseNameOf path != "result" &&
|
|
||||||
baseNameOf path != "dist") ./.
|
|
||||||
}:
|
}:
|
||||||
pkgs.haskellPackages.buildLocalCabalWithArgs {
|
mkDerivation {
|
||||||
name = "servant";
|
pname = "servant";
|
||||||
inherit src;
|
version = "0.2.2";
|
||||||
args = {};
|
src = ./.;
|
||||||
|
buildDepends = [
|
||||||
|
aeson attoparsec base bytestring bytestring-conversion
|
||||||
|
case-insensitive http-media http-types network-uri
|
||||||
|
string-conversions text
|
||||||
|
];
|
||||||
|
testDepends = [
|
||||||
|
aeson attoparsec base bytestring doctest filemanip hspec parsec
|
||||||
|
QuickCheck quickcheck-instances string-conversions text url
|
||||||
|
];
|
||||||
|
homepage = "http://haskell-servant.github.io/";
|
||||||
|
description = "A family of combinators for defining webservices APIs";
|
||||||
|
license = stdenv.lib.licenses.bsd3;
|
||||||
}
|
}
|
||||||
|
|
5
sources.txt
Normal file
5
sources.txt
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
servant
|
||||||
|
servant-client
|
||||||
|
servant-docs
|
||||||
|
servant-jquery
|
||||||
|
servant-server
|
Loading…
Add table
Reference in a new issue