about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorStig2023-04-15 22:36:44 +0200
committerGitHub2023-04-15 22:36:44 +0200
commitbf3e7b8b0724a816970f03e79fe46b9783430efb (patch)
treea56f6290830cee9b56a7c57e55218bb430b7b82a /pkgs
parent14577497e182f538c0f5fad8ad01421541cc42ef (diff)
parent0a02190f4bc8f8bfa27d20971e9f51b627dc5678 (diff)
Merge pull request #224854 from marcusramberg/marcus/init_promexplorer
promexplorer: init at 0.0.3
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/nim-packages/illwillwidgets/default.nix21
-rw-r--r--pkgs/tools/misc/promexplorer/default.nix22
-rw-r--r--pkgs/top-level/all-packages.nix2
-rw-r--r--pkgs/top-level/nim-packages.nix2
4 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/nim-packages/illwillwidgets/default.nix b/pkgs/development/nim-packages/illwillwidgets/default.nix
new file mode 100644
index 000000000000..de0dbfa11645
--- /dev/null
+++ b/pkgs/development/nim-packages/illwillwidgets/default.nix
@@ -0,0 +1,21 @@
+{ lib, buildNimPackage, fetchFromGitHub }:
+
+buildNimPackage rec {
+  pname = "illwillwidgets";
+  version = "0.1.11";
+
+  src = fetchFromGitHub {
+    owner = "enthus1ast";
+    repo = "illwillWidgets";
+    rev = "04f507cfd651df430b1421403b3a70cb061c4624";
+    hash = "sha256-YVNdgs8jquJ58qbcyNMMJt+hJYcvahYpkSrDBbO4ILU=";
+  };
+
+  meta = with lib;
+    src.meta // {
+      description = "Mouse enabled widgets for illwill";
+
+      license = [ licenses.mit ];
+      maintainers = with maintainers; [ marcusramberg ];
+    };
+}
diff --git a/pkgs/tools/misc/promexplorer/default.nix b/pkgs/tools/misc/promexplorer/default.nix
new file mode 100644
index 000000000000..b2c032be22ca
--- /dev/null
+++ b/pkgs/tools/misc/promexplorer/default.nix
@@ -0,0 +1,22 @@
+{ lib, nimPackages, fetchFromGitHub }:
+nimPackages.buildNimPackage rec {
+  pname = "promexplorer";
+  version = "0.0.3";
+  nimBinOnly = true;
+  src = fetchFromGitHub {
+    owner = "marcusramberg";
+    repo = "promexplorer";
+    rev = "v${version}";
+    hash = "sha256-q+m4+aWT3IiI/XGmAm7jrJAxRbzzHr+p58eiHqjEbV0=";
+  };
+
+  buildInputs = with nimPackages; [ illwill illwillwidgets ];
+
+  meta = with lib; {
+    description = "A simple tool to explore prometheus exporter metrics";
+    homepage = "https://github.com/marcusramberg/promexplorer";
+    license = licenses.mit;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ marcusramberg ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index e85383132329..5ccdfa2dd184 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -10375,6 +10375,8 @@ with pkgs;
 
   pnmixer = callPackage ../tools/audio/pnmixer { };
 
+  promexplorer = callPackage ../tools/misc/promexplorer { };
+
   pulsemixer = callPackage ../tools/audio/pulsemixer { };
 
   pwsafe = callPackage ../applications/misc/pwsafe { };
diff --git a/pkgs/top-level/nim-packages.nix b/pkgs/top-level/nim-packages.nix
index 9d20a473dc6a..da443780e6f8 100644
--- a/pkgs/top-level/nim-packages.nix
+++ b/pkgs/top-level/nim-packages.nix
@@ -49,6 +49,8 @@ lib.makeScope newScope (self:
 
     illwill = callPackage ../development/nim-packages/illwill { };
 
+    illwillwidgets = callPackage ../development/nim-packages/illwillwidgets { };
+
     jester = callPackage ../development/nim-packages/jester { };
 
     jsonschema = callPackage ../development/nim-packages/jsonschema { };