aboutsummaryrefslogtreecommitdiff
path: root/pkgs/kfmon/default.nix
blob: 6cb9c23497e7e7f38283a20db8e5dcf51f0ad488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
  };
})