116 lines
6.2 KiB
Nix
116 lines
6.2 KiB
Nix
|
{ system
|
||
|
, compiler
|
||
|
, flags
|
||
|
, pkgs
|
||
|
, hsPkgs
|
||
|
, pkgconfPkgs
|
||
|
, errorHandler
|
||
|
, config
|
||
|
, ... }:
|
||
|
{
|
||
|
flags = { develop = false; };
|
||
|
package = {
|
||
|
specVersion = "3.0";
|
||
|
identifier = { name = "mateamt"; version = "0.0.0.0"; };
|
||
|
license = "AGPL-3.0-or-later";
|
||
|
copyright = "";
|
||
|
maintainer = "nek0@nek0.eu";
|
||
|
author = "nek0";
|
||
|
homepage = "https://gitea.nek0.eu/nek0/mateamt/";
|
||
|
url = "";
|
||
|
synopsis = "A whole new matemat";
|
||
|
description = "";
|
||
|
buildType = "Simple";
|
||
|
isLocal = true;
|
||
|
};
|
||
|
components = {
|
||
|
"library" = {
|
||
|
depends = [
|
||
|
(hsPkgs."base" or (errorHandler.buildDepError "base"))
|
||
|
(hsPkgs."text" or (errorHandler.buildDepError "text"))
|
||
|
(hsPkgs."time" or (errorHandler.buildDepError "time"))
|
||
|
(hsPkgs."mtl" or (errorHandler.buildDepError "mtl"))
|
||
|
(hsPkgs."containers" or (errorHandler.buildDepError "containers"))
|
||
|
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
|
||
|
(hsPkgs."base16-bytestring" or (errorHandler.buildDepError "base16-bytestring"))
|
||
|
(hsPkgs."base64-bytestring" or (errorHandler.buildDepError "base64-bytestring"))
|
||
|
(hsPkgs."random-bytestring" or (errorHandler.buildDepError "random-bytestring"))
|
||
|
(hsPkgs."servant" or (errorHandler.buildDepError "servant"))
|
||
|
(hsPkgs."servant-server" or (errorHandler.buildDepError "servant-server"))
|
||
|
(hsPkgs."servant-rawm" or (errorHandler.buildDepError "servant-rawm"))
|
||
|
(hsPkgs."servant-rawm-server" or (errorHandler.buildDepError "servant-rawm-server"))
|
||
|
(hsPkgs."opaleye" or (errorHandler.buildDepError "opaleye"))
|
||
|
(hsPkgs."aeson" or (errorHandler.buildDepError "aeson"))
|
||
|
(hsPkgs."profunctors" or (errorHandler.buildDepError "profunctors"))
|
||
|
(hsPkgs."product-profunctors" or (errorHandler.buildDepError "product-profunctors"))
|
||
|
(hsPkgs."postgresql-simple" or (errorHandler.buildDepError "postgresql-simple"))
|
||
|
(hsPkgs."warp" or (errorHandler.buildDepError "warp"))
|
||
|
(hsPkgs."wai" or (errorHandler.buildDepError "wai"))
|
||
|
(hsPkgs."wai-logger" or (errorHandler.buildDepError "wai-logger"))
|
||
|
(hsPkgs."http-types" or (errorHandler.buildDepError "http-types"))
|
||
|
(hsPkgs."http-api-data" or (errorHandler.buildDepError "http-api-data"))
|
||
|
(hsPkgs."stm" or (errorHandler.buildDepError "stm"))
|
||
|
(hsPkgs."pureMD5" or (errorHandler.buildDepError "pureMD5"))
|
||
|
(hsPkgs."extra" or (errorHandler.buildDepError "extra"))
|
||
|
];
|
||
|
buildable = true;
|
||
|
};
|
||
|
exes = {
|
||
|
"mateamt" = {
|
||
|
depends = [
|
||
|
(hsPkgs."base" or (errorHandler.buildDepError "base"))
|
||
|
(hsPkgs."mateamt" or (errorHandler.buildDepError "mateamt"))
|
||
|
(hsPkgs."text" or (errorHandler.buildDepError "text"))
|
||
|
(hsPkgs."time" or (errorHandler.buildDepError "time"))
|
||
|
(hsPkgs."mtl" or (errorHandler.buildDepError "mtl"))
|
||
|
(hsPkgs."containers" or (errorHandler.buildDepError "containers"))
|
||
|
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
|
||
|
(hsPkgs."base16-bytestring" or (errorHandler.buildDepError "base16-bytestring"))
|
||
|
(hsPkgs."opaleye" or (errorHandler.buildDepError "opaleye"))
|
||
|
(hsPkgs."postgresql-simple" or (errorHandler.buildDepError "postgresql-simple"))
|
||
|
(hsPkgs."postgresql-simple-migration" or (errorHandler.buildDepError "postgresql-simple-migration"))
|
||
|
(hsPkgs."stm" or (errorHandler.buildDepError "stm"))
|
||
|
(hsPkgs."network" or (errorHandler.buildDepError "network"))
|
||
|
(hsPkgs."servant" or (errorHandler.buildDepError "servant"))
|
||
|
(hsPkgs."servant-server" or (errorHandler.buildDepError "servant-server"))
|
||
|
(hsPkgs."warp" or (errorHandler.buildDepError "warp"))
|
||
|
(hsPkgs."wai" or (errorHandler.buildDepError "wai"))
|
||
|
(hsPkgs."wai-logger" or (errorHandler.buildDepError "wai-logger"))
|
||
|
(hsPkgs."wai-middleware-throttle" or (errorHandler.buildDepError "wai-middleware-throttle"))
|
||
|
(hsPkgs."HsYAML" or (errorHandler.buildDepError "HsYAML"))
|
||
|
(hsPkgs."optparse-applicative" or (errorHandler.buildDepError "optparse-applicative"))
|
||
|
(hsPkgs."case-insensitive" or (errorHandler.buildDepError "case-insensitive"))
|
||
|
(hsPkgs."iproute" or (errorHandler.buildDepError "iproute"))
|
||
|
(hsPkgs."clock" or (errorHandler.buildDepError "clock"))
|
||
|
];
|
||
|
buildable = true;
|
||
|
};
|
||
|
};
|
||
|
tests = {
|
||
|
"mateamt-test" = {
|
||
|
depends = [
|
||
|
(hsPkgs."base" or (errorHandler.buildDepError "base"))
|
||
|
(hsPkgs."mateamt" or (errorHandler.buildDepError "mateamt"))
|
||
|
(hsPkgs."text" or (errorHandler.buildDepError "text"))
|
||
|
(hsPkgs."time" or (errorHandler.buildDepError "time"))
|
||
|
(hsPkgs."mtl" or (errorHandler.buildDepError "mtl"))
|
||
|
(hsPkgs."containers" or (errorHandler.buildDepError "containers"))
|
||
|
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
|
||
|
(hsPkgs."hspec" or (errorHandler.buildDepError "hspec"))
|
||
|
(hsPkgs."hspec-wai" or (errorHandler.buildDepError "hspec-wai"))
|
||
|
(hsPkgs."hspec-wai-json" or (errorHandler.buildDepError "hspec-wai-json"))
|
||
|
(hsPkgs."warp" or (errorHandler.buildDepError "warp"))
|
||
|
(hsPkgs."wai" or (errorHandler.buildDepError "wai"))
|
||
|
(hsPkgs."pg-transact" or (errorHandler.buildDepError "pg-transact"))
|
||
|
(hsPkgs."tmp-postgres" or (errorHandler.buildDepError "tmp-postgres"))
|
||
|
(hsPkgs."resource-pool" or (errorHandler.buildDepError "resource-pool"))
|
||
|
(hsPkgs."postgresql-simple" or (errorHandler.buildDepError "postgresql-simple"))
|
||
|
];
|
||
|
build-tools = [
|
||
|
(hsPkgs.buildPackages.hspec-discover.components.exes.hspec-discover or (pkgs.buildPackages.hspec-discover or (errorHandler.buildToolDepError "hspec-discover:hspec-discover")))
|
||
|
];
|
||
|
buildable = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
} // rec { src = (pkgs.lib).mkDefault .././../.; }
|