mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
add the servant (haskell) packages to nixpkgs
This commit is contained in:
parent
81c39d40f7
commit
6e2e58ea2e
@ -0,0 +1,16 @@
|
||||
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
|
||||
|
||||
{ cabal, resourcePool, servant, time }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "servant-pool";
|
||||
version = "0.1";
|
||||
sha256 = "0if4lxb0fpdd4lnkz9j7z6vhjbrcc80pvz9jb6sdb9p6sbbgqf69";
|
||||
buildDepends = [ resourcePool servant time ];
|
||||
meta = {
|
||||
homepage = "http://github.com/zalora/servant-pool";
|
||||
description = "Utility functions for creating servant 'Context's with \"context/connection pooling\" support";
|
||||
license = self.stdenv.lib.licenses.bsd3;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
};
|
||||
})
|
@ -0,0 +1,18 @@
|
||||
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
|
||||
|
||||
{ cabal, postgresqlSimple, servant, servantPool, servantResponse }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "servant-postgresql";
|
||||
version = "0.1";
|
||||
sha256 = "1svy1v6sl5pq0zs8ms4qf7wn6zar63bqmfiyfqgz84ryli0wxrhj";
|
||||
buildDepends = [
|
||||
postgresqlSimple servant servantPool servantResponse
|
||||
];
|
||||
meta = {
|
||||
homepage = "http://github.com/zalora/servant-postgresql";
|
||||
description = "Useful functions and instances for using servant with a PostgreSQL context";
|
||||
license = self.stdenv.lib.licenses.bsd3;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
};
|
||||
})
|
@ -0,0 +1,16 @@
|
||||
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
|
||||
|
||||
{ cabal, aeson, httpTypes, text }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "servant-response";
|
||||
version = "0.1";
|
||||
sha256 = "0vgzi6nm3f1vjbnvhzcr6v2fh75fsl18wsps54ya0mbmfn2v6chy";
|
||||
buildDepends = [ aeson httpTypes text ];
|
||||
meta = {
|
||||
homepage = "http://github.com/zalora/servant";
|
||||
description = "Machinery to express how servant should turn results of database operations into proper JSON-encodable response types";
|
||||
license = self.stdenv.lib.licenses.bsd3;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
};
|
||||
})
|
@ -0,0 +1,20 @@
|
||||
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
|
||||
|
||||
{ cabal, aeson, httpTypes, scotty, servant, servantResponse, text
|
||||
, transformers
|
||||
}:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "servant-scotty";
|
||||
version = "0.1";
|
||||
sha256 = "0nl4ghx4hp1329sgnphirnnikxyn5hgw0iz5dga5ib16bmkzbsvi";
|
||||
buildDepends = [
|
||||
aeson httpTypes scotty servant servantResponse text transformers
|
||||
];
|
||||
meta = {
|
||||
homepage = "http://github.com/zalora/servant";
|
||||
description = "Generate a web service for servant 'Resource's using scotty and JSON";
|
||||
license = self.stdenv.lib.licenses.bsd3;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
};
|
||||
})
|
15
pkgs/development/libraries/haskell/servant/servant.nix
Normal file
15
pkgs/development/libraries/haskell/servant/servant.nix
Normal file
@ -0,0 +1,15 @@
|
||||
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
|
||||
|
||||
{ cabal }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "servant";
|
||||
version = "0.1";
|
||||
sha256 = "1bm5223rjgcm8rb3s2mclmfj2df7j059jjh572a5py0rdqzg3yj0";
|
||||
meta = {
|
||||
homepage = "http://github.com/zalora/servant";
|
||||
description = "A library to generate REST-style webservices on top of scotty, handling all the boilerplate for you";
|
||||
license = self.stdenv.lib.licenses.bsd3;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
};
|
||||
})
|
@ -2152,6 +2152,16 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
|
||||
|
||||
semigroupoidExtras = callPackage ../development/libraries/haskell/semigroupoid-extras {};
|
||||
|
||||
servant = callPackage ../development/libraries/haskell/servant {};
|
||||
|
||||
servant-pool = callPackage ../development/libraries/haskell/servant-pool {};
|
||||
|
||||
servant-postgresql = callPackage ../development/libraries/haskell/servant-postgresql {};
|
||||
|
||||
servant-response = callPackage ../development/libraries/haskell/servant-response {};
|
||||
|
||||
servant-scotty = callPackage ../development/libraries/haskell/servant-scotty {};
|
||||
|
||||
setenv = callPackage ../development/libraries/haskell/setenv {};
|
||||
|
||||
setlocale = callPackage ../development/libraries/haskell/setlocale {};
|
||||
|
Loading…
Reference in New Issue
Block a user