From 8f44ae7c7e440da08f28c47d9bd846cc37663dfb Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sun, 23 Oct 2022 08:05:02 +0100 Subject: [PATCH] prometheus-proc: init at 0.1.4.0 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/prometheus-proc.nix | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 pkgs/prometheus-proc.nix diff --git a/manifest.dhall b/manifest.dhall index c0997873..0de70b68 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -328,6 +328,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "pretty-simple" "4.1.1.0" , callHackage "prettyprinter-ansi-terminal" "1.1.3" , callHackage "primitive" "0.7.4.0" + , callHackage "prometheus-proc" "0.1.4.0" , callHackage "proteaaudio-sdl" "0.9.2" , callHackage "quickcheck-dynamic" "2.0.0" , callHackage "quickcheck-instances" "0.3.28" diff --git a/overlay.nix b/overlay.nix index 19d72014..d2a5f194 100644 --- a/overlay.nix +++ b/overlay.nix @@ -395,6 +395,8 @@ final: prev: with pkgs.haskell.lib; { primitive = prev.callPackage (./pkgs/primitive.nix) { }; + prometheus-proc = prev.callPackage (./pkgs/prometheus-proc.nix) { }; + proteaaudio-sdl = prev.callPackage (./pkgs/proteaaudio-sdl.nix) { }; quickcheck-dynamic = prev.callPackage (./pkgs/quickcheck-dynamic.nix) { }; diff --git a/pkgs/prometheus-proc.nix b/pkgs/prometheus-proc.nix new file mode 100644 index 00000000..35be48eb --- /dev/null +++ b/pkgs/prometheus-proc.nix @@ -0,0 +1,19 @@ +{ mkDerivation, base, directory, filepath, lib, prometheus-client +, regex-applicative, text, unix, unix-memory +}: +mkDerivation { + pname = "prometheus-proc"; + version = "0.1.4.0"; + sha256 = "de92520596bb07957a13cede7a0b43eb6fec5ec6f92d5b466141cf5058b02c6a"; + libraryHaskellDepends = [ + base directory filepath prometheus-client regex-applicative text + unix unix-memory + ]; + doHaddock = false; + jailbreak = true; + doCheck = false; + hyperlinkSource = false; + homepage = "https://github.com/fimad/prometheus-haskell"; + description = "Export metrics from /proc for the current process"; + license = lib.licenses.bsd3; +} \ No newline at end of file -- GitLab