aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/misc/haskell
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/misc/haskell')
-rw-r--r--nixpkgs/pkgs/development/misc/haskell/hasura/ci-info/default.nix22
-rw-r--r--nixpkgs/pkgs/development/misc/haskell/hasura/graphql-engine/default.nix73
-rw-r--r--nixpkgs/pkgs/development/misc/haskell/hasura/graphql-parser/default.nix36
-rw-r--r--nixpkgs/pkgs/development/misc/haskell/hasura/pg-client/default.nix30
4 files changed, 161 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/misc/haskell/hasura/ci-info/default.nix b/nixpkgs/pkgs/development/misc/haskell/hasura/ci-info/default.nix
new file mode 100644
index 00000000000..53c85a2e5ba
--- /dev/null
+++ b/nixpkgs/pkgs/development/misc/haskell/hasura/ci-info/default.nix
@@ -0,0 +1,22 @@
+{ mkDerivation, aeson, aeson-casing, base, fetchgit, hashable
+, hpack, stdenv, template-haskell, text, th-lift-instances
+, unordered-containers
+}:
+mkDerivation {
+ pname = "ci-info";
+ version = "0.1.0.0";
+ src = fetchgit {
+ url = "https://github.com/hasura/ci-info-hs.git";
+ sha256 = "0rn1799z4y7z1c6ijrr0gscarg25zmnfq0z9rrmk4ad727vf1ppc";
+ rev = "6af5a68450347a02295a9cd050d05a8b2f5c06ab";
+ fetchSubmodules = true;
+ };
+ libraryHaskellDepends = [
+ aeson aeson-casing base hashable template-haskell text
+ th-lift-instances unordered-containers
+ ];
+ libraryToolDepends = [ hpack ];
+ prePatch = "hpack";
+ homepage = "https://github.com/hasura/ci-info-hs#readme";
+ license = stdenv.lib.licenses.mit;
+}
diff --git a/nixpkgs/pkgs/development/misc/haskell/hasura/graphql-engine/default.nix b/nixpkgs/pkgs/development/misc/haskell/hasura/graphql-engine/default.nix
new file mode 100644
index 00000000000..0bd68afae4b
--- /dev/null
+++ b/nixpkgs/pkgs/development/misc/haskell/hasura/graphql-engine/default.nix
@@ -0,0 +1,73 @@
+{ mkDerivation, aeson, aeson-casing, ansi-wl-pprint, asn1-encoding
+, asn1-types, async, attoparsec, attoparsec-iso8601, auto-update
+, base, base64-bytestring, byteorder, bytestring, case-insensitive
+, ci-info, containers, criterion, cryptonite, data-has, deepseq
+, dependent-map, dependent-sum, directory, ekg-core, ekg-json
+, fast-logger, fetchgit, file-embed, filepath, generic-arbitrary
+, ghc-heap-view, graphql-parser, hashable, hspec, hspec-core
+, hspec-expectations-lifted, http-client, http-client-tls
+, http-types, immortal, insert-ordered-containers, jose, lens
+, lifted-async, lifted-base, list-t, mime-types, monad-control
+, monad-time, monad-validate, mtl, mustache, mwc-probability
+, mwc-random, natural-transformation, network, network-uri
+, optparse-applicative, pem, pg-client, postgresql-binary
+, postgresql-libpq, process, profunctors, psqueues, QuickCheck
+, regex-tdfa, safe, scientific, semver, shakespeare, split
+, Spock-core, stdenv, stm, stm-containers, template-haskell, text
+, text-builder, text-conversions, th-lift-instances, these, time
+, transformers, transformers-base, unix, unordered-containers
+, uri-encode, uuid, vector, wai, wai-websockets, warp, websockets
+, wreq, x509, yaml, zlib, witherable, semialign, validation, cron
+}:
+mkDerivation {
+ pname = "graphql-engine";
+ version = "1.0.0";
+ src = fetchgit {
+ url = "https://github.com/hasura/graphql-engine.git";
+ sha256 = "sha256-tNKoi3dtoXj0nn4qBgLBroo7SgX7SdVaHtBqjs1S3hQ=";
+ rev = "1e3eb035d3c915032ba23e502bcb0132b4d54202";
+ fetchSubmodules = true;
+ };
+ postUnpack = "sourceRoot+=/server; echo source root reset to $sourceRoot";
+ isLibrary = true;
+ isExecutable = true;
+ libraryHaskellDepends = [
+ aeson aeson-casing ansi-wl-pprint asn1-encoding asn1-types async
+ attoparsec attoparsec-iso8601 auto-update base base64-bytestring
+ byteorder bytestring case-insensitive ci-info containers cryptonite
+ data-has deepseq dependent-map dependent-sum directory ekg-core
+ ekg-json fast-logger file-embed filepath generic-arbitrary
+ ghc-heap-view graphql-parser hashable http-client http-client-tls
+ http-types immortal insert-ordered-containers jose lens
+ lifted-async lifted-base list-t mime-types monad-control monad-time
+ monad-validate mtl mustache network network-uri
+ optparse-applicative pem pg-client postgresql-binary
+ postgresql-libpq process profunctors psqueues QuickCheck regex-tdfa
+ scientific semver shakespeare split Spock-core stm stm-containers
+ template-haskell text text-builder text-conversions
+ th-lift-instances these time transformers transformers-base unix
+ unordered-containers uri-encode uuid vector wai wai-websockets warp
+ websockets wreq x509 yaml zlib
+ witherable semialign validation
+ cron
+ ];
+ executableHaskellDepends = [
+ base bytestring pg-client text text-conversions
+ ];
+ testHaskellDepends = [
+ aeson base bytestring hspec hspec-core hspec-expectations-lifted
+ http-client http-client-tls lifted-base monad-control mtl
+ natural-transformation optparse-applicative pg-client process
+ QuickCheck safe split text time transformers-base
+ unordered-containers
+ ];
+ benchmarkHaskellDepends = [
+ async base bytestring criterion deepseq mwc-probability mwc-random
+ split text vector
+ ];
+ doCheck = false;
+ homepage = "https://www.hasura.io";
+ description = "GraphQL API over Postgres";
+ license = stdenv.lib.licenses.asl20;
+ maintainers = with stdenv.lib.maintainers; [ offline ];
+}
diff --git a/nixpkgs/pkgs/development/misc/haskell/hasura/graphql-parser/default.nix b/nixpkgs/pkgs/development/misc/haskell/hasura/graphql-parser/default.nix
new file mode 100644
index 00000000000..991b5384d5c
--- /dev/null
+++ b/nixpkgs/pkgs/development/misc/haskell/hasura/graphql-parser/default.nix
@@ -0,0 +1,36 @@
+{ mkDerivation, aeson, attoparsec, base, bytestring, containers
+, criterion, fetchgit, filepath, hedgehog, hpack, prettyprinter
+, protolude, regex-tdfa, scientific, stdenv, template-haskell, text
+, text-builder, th-lift-instances, unordered-containers, vector
+}:
+mkDerivation {
+ pname = "graphql-parser";
+ version = "0.1.0.1";
+ src = fetchgit {
+ url = "https://github.com/hasura/graphql-parser-hs.git";
+ sha256 = "sha256-oem/h0AQPk7eSM/P6wMoWV9KirxutE4hnQWwrpQ6TGk=";
+ rev = "ba8e26fef1488cf3c8c08e86f02730f56ec84e1f";
+ fetchSubmodules = true;
+ };
+ libraryHaskellDepends = [
+ aeson attoparsec base bytestring containers filepath hedgehog
+ prettyprinter protolude regex-tdfa scientific template-haskell text
+ text-builder th-lift-instances unordered-containers vector
+ ];
+ libraryToolDepends = [ hpack ];
+ testHaskellDepends = [
+ aeson attoparsec base bytestring containers filepath hedgehog
+ prettyprinter protolude regex-tdfa scientific template-haskell text
+ text-builder th-lift-instances unordered-containers vector
+ ];
+ benchmarkHaskellDepends = [
+ aeson attoparsec base bytestring containers criterion filepath
+ hedgehog prettyprinter protolude regex-tdfa scientific
+ template-haskell text text-builder th-lift-instances
+ unordered-containers vector
+ ];
+ doCheck = false;
+ prePatch = "hpack";
+ homepage = "https://github.com/hasura/graphql-parser-hs#readme";
+ license = stdenv.lib.licenses.bsd3;
+}
diff --git a/nixpkgs/pkgs/development/misc/haskell/hasura/pg-client/default.nix b/nixpkgs/pkgs/development/misc/haskell/hasura/pg-client/default.nix
new file mode 100644
index 00000000000..725e5e7f640
--- /dev/null
+++ b/nixpkgs/pkgs/development/misc/haskell/hasura/pg-client/default.nix
@@ -0,0 +1,30 @@
+{ mkDerivation, aeson, aeson-casing, attoparsec, base, bytestring
+, criterion, fetchgit, file-embed, hashable, hashtables, hasql
+, hasql-pool, hasql-transaction, monad-control, mtl
+, postgresql-binary, postgresql-libpq, resource-pool, retry
+, scientific, stdenv, template-haskell, text, text-builder, th-lift
+, th-lift-instances, time, transformers-base, uuid, vector
+}:
+mkDerivation {
+ pname = "pg-client";
+ version = "0.1.0";
+ src = fetchgit {
+ url = "https://github.com/hasura/pg-client-hs.git";
+ sha256 = "1941gj5yp24kx0xb1nd774nwp5vnpsp6m83isqkwpyz9spl4sq7l";
+ rev = "70a849d09bea9461e72c5a5bbde06df65aab61c0";
+ fetchSubmodules = true;
+ };
+ libraryHaskellDepends = [
+ aeson aeson-casing attoparsec base bytestring hashable hashtables
+ monad-control mtl postgresql-binary postgresql-libpq resource-pool
+ retry scientific template-haskell text text-builder th-lift
+ th-lift-instances time transformers-base uuid vector
+ ];
+ testHaskellDepends = [ base ];
+ benchmarkHaskellDepends = [
+ base bytestring criterion file-embed hashable hasql hasql-pool
+ hasql-transaction mtl postgresql-libpq text text-builder
+ ];
+ homepage = "https://github.com/hasura/platform";
+ license = stdenv.lib.licenses.bsd3;
+}