Browse Source

nixified

Signed-off-by: Alexander Diemand <codieplusplus@apax.net>
master^2
Alexander Diemand 3 years ago
parent
commit
adbe445564
  1. 2
      examples/lobemo-examples.cabal
  2. 2
      nix/.stack.nix/default.nix
  3. 54
      nix/.stack.nix/iohk-monitoring.nix
  4. 38
      nix/.stack.nix/lobemo-backend-editor.nix
  5. 62
      nix/.stack.nix/lobemo-examples.nix
  6. 2
      stack.yaml

2
examples/lobemo-examples.cabal

@ -9,7 +9,7 @@ license: Apache-2.0
license-file: LICENSE
author: Alexander Diemand
maintainer: operations@iohk.io
-- copyright:
copyright: 2019 IOHK
category: Benchmarking
build-type: Simple
extra-source-files: CHANGELOG.md

2
nix/.stack.nix/default.nix generated

@ -9,6 +9,8 @@
contra-tracer = ./contra-tracer.nix;
iohk-monitoring = ./iohk-monitoring.nix;
tracer-transformers = ./tracer-transformers.nix;
lobemo-examples = ./lobemo-examples.nix;
lobemo-backend-editor = ./lobemo-backend-editor.nix;
ekg-prometheus-adapter = ./ekg-prometheus-adapter.nix;
};
compiler.version = "8.6.5";

54
nix/.stack.nix/iohk-monitoring.nix generated

@ -4,7 +4,6 @@
disable-aggregation = false;
disable-ekg = false;
disable-graylog = false;
disable-prometheus = false;
disable-gui = false;
disable-monitoring = false;
disable-observables = false;
@ -14,7 +13,7 @@
};
package = {
specVersion = "1.10";
identifier = { name = "iohk-monitoring"; version = "0.1.10.0"; };
identifier = { name = "iohk-monitoring"; version = "0.1.10.1"; };
license = "Apache-2.0";
copyright = "2018 IOHK";
maintainer = "";
@ -27,7 +26,7 @@
};
components = {
"library" = {
depends = ((((([
depends = ([
(hsPkgs.base)
(hsPkgs.contra-tracer)
(hsPkgs.aeson)
@ -59,14 +58,7 @@
(hsPkgs.vector)
(hsPkgs.yaml)
(hsPkgs.libyaml)
] ++ (pkgs.lib).optionals (!flags.disable-ekg) [
(hsPkgs.ekg)
(hsPkgs.ekg-core)
]) ++ (pkgs.lib).optionals (!flags.disable-ekg && !flags.disable-prometheus) [
(hsPkgs.ekg-prometheus-adapter)
(hsPkgs.prometheus)
(hsPkgs.warp)
]) ++ (pkgs.lib).optional (!flags.disable-graylog) (hsPkgs.network)) ++ (pkgs.lib).optional (!flags.disable-gui) (hsPkgs.threepenny-gui)) ++ (if system.isWindows
] ++ (if system.isWindows
then [ (hsPkgs.Win32) ]
else [
(hsPkgs.unix)
@ -75,46 +67,6 @@
(hsPkgs.libsystemd-journal)
];
};
exes = {
"example-simple" = {
depends = [
(hsPkgs.base)
(hsPkgs.aeson)
(hsPkgs.iohk-monitoring)
(hsPkgs.async)
(hsPkgs.bytestring)
(hsPkgs.mtl)
] ++ (if system.isWindows
then [ (hsPkgs.Win32) ]
else [ (hsPkgs.unix) ]);
};
"example-complex" = {
depends = ([
(hsPkgs.base)
(hsPkgs.iohk-monitoring)
(hsPkgs.async)
(hsPkgs.bytestring)
(hsPkgs.mtl)
(hsPkgs.random)
(hsPkgs.text)
(hsPkgs.unordered-containers)
] ++ (if system.isWindows
then [ (hsPkgs.Win32) ]
else [
(hsPkgs.unix)
])) ++ (pkgs.lib).optional (system.isLinux) (hsPkgs.download);
};
"example-performance" = {
depends = [
(hsPkgs.base)
(hsPkgs.iohk-monitoring)
(hsPkgs.async)
(hsPkgs.criterion)
(hsPkgs.text)
(hsPkgs.unordered-containers)
];
};
};
tests = {
"tests" = {
depends = [

38
nix/.stack.nix/lobemo-backend-editor.nix generated

@ -0,0 +1,38 @@
{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
{
flags = {};
package = {
specVersion = "2.0";
identifier = { name = "lobemo-backend-editor"; version = "0.1.0.0"; };
license = "Apache-2.0";
copyright = "2019 IOHK";
maintainer = "operations@iohk.io";
author = "Alexander Diemand";
homepage = "https://github.com/input-output-hk/iohk-monitoring-framework";
url = "";
synopsis = "provides a backend implementation to interactively manage configuration";
description = "";
buildType = "Simple";
};
components = {
"library" = {
depends = [
(hsPkgs.base)
(hsPkgs.iohk-monitoring)
(hsPkgs.aeson)
(hsPkgs.async)
(hsPkgs.bytestring)
(hsPkgs.directory)
(hsPkgs.filepath)
(hsPkgs.safe)
(hsPkgs.safe-exceptions)
(hsPkgs.text)
(hsPkgs.time)
(hsPkgs.threepenny-gui)
(hsPkgs.unordered-containers)
] ++ (if system.isWindows
then [ (hsPkgs.Win32) ]
else [ (hsPkgs.unix) ]);
};
};
} // rec { src = (pkgs.lib).mkDefault ../.././plugins/backend-editor; }

62
nix/.stack.nix/lobemo-examples.nix generated

@ -0,0 +1,62 @@
{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
{
flags = {};
package = {
specVersion = "2.0";
identifier = { name = "lobemo-examples"; version = "0.1.0.0"; };
license = "Apache-2.0";
copyright = "2019 IOHK";
maintainer = "operations@iohk.io";
author = "Alexander Diemand";
homepage = "https://github.com/input-output-hk/iohk-monitoring-framework";
url = "";
synopsis = "examples of logging, benchmarking, and monitoring";
description = "";
buildType = "Simple";
};
components = {
exes = {
"example-simple" = {
depends = [
(hsPkgs.base)
(hsPkgs.base)
(hsPkgs.aeson)
(hsPkgs.iohk-monitoring)
(hsPkgs.lobemo-backend-editor)
(hsPkgs.async)
(hsPkgs.bytestring)
(hsPkgs.mtl)
] ++ (if system.isWindows
then [ (hsPkgs.Win32) ]
else [ (hsPkgs.unix) ]);
};
"example-complex" = {
depends = ([
(hsPkgs.base)
(hsPkgs.iohk-monitoring)
(hsPkgs.lobemo-backend-editor)
(hsPkgs.async)
(hsPkgs.bytestring)
(hsPkgs.mtl)
(hsPkgs.random)
(hsPkgs.text)
(hsPkgs.unordered-containers)
] ++ (if system.isWindows
then [ (hsPkgs.Win32) ]
else [
(hsPkgs.unix)
])) ++ (pkgs.lib).optional (system.isLinux) (hsPkgs.download);
};
"example-performance" = {
depends = [
(hsPkgs.base)
(hsPkgs.iohk-monitoring)
(hsPkgs.async)
(hsPkgs.criterion)
(hsPkgs.text)
(hsPkgs.unordered-containers)
];
};
};
};
} // rec { src = (pkgs.lib).mkDefault ../.././examples; }

2
stack.yaml

@ -4,6 +4,8 @@ packages:
- contra-tracer
- iohk-monitoring
- tracer-transformers
- examples
- plugins/backend-editor
extra-deps:
- time-units-1.0.0

Loading…
Cancel
Save