aboutsummaryrefslogtreecommitdiff
path: root/pkgs/kfmon
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/kfmon')
-rw-r--r--pkgs/kfmon/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/kfmon/default.nix b/pkgs/kfmon/default.nix
new file mode 100644
index 0000000..6cb9c23
--- /dev/null
+++ b/pkgs/kfmon/default.nix
@@ -0,0 +1,29 @@
+{ stdenvNoCC, fetchzip, lib, ... }:
+stdenvNoCC.mkDerivation (finalAttrs: {
+ pname = "kfmon";
+ version = "1.4.6-89-g8daae26";
+
+ src = fetchzip {
+ url = "https://storage.gra.cloud.ovh.net/v1/AUTH_2ac4bfee353948ec8ea7fd1710574097/kfmon-pub/OCP-KFMon-${finalAttrs.version}.zip";
+ stripRoot = false;
+ hash = "sha256-yaFRNdnlzelLsdGdmBjeH1hx8anYFx6zpcaRpRzqDlY=";
+ };
+
+ phases = "installPhase";
+
+ installPhase = ''
+ runHook preInstall
+
+ cp -ra $src $out
+
+ chmod +x $out/.adds/kfmon/bin/*
+
+ runHook postInstall
+ '';
+
+ meta = with lib; {
+ homepage = "https://github.com/NiLuJe/kfmon";
+ platform = platforms.all;
+ license = licenses.gpl3Plus;
+ };
+})