2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, gzip
|
|
|
|
, brotli
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.2.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
pname = "angie-console-light";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.angie.software/files/${pname}/${pname}-${version}.tar.gz";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-bwnVwhcPyEXGzvpXj2bC1WUGtNbBlHpqZibApKtESq8=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "doc" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ brotli ];
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/angie-console-light
|
|
|
|
mv ./html $out/share/angie-console-light
|
|
|
|
|
|
|
|
mkdir -p $doc/share/doc/angie-console-light
|
|
|
|
mv ./LICENSE $doc/share/doc/angie-console-light
|
|
|
|
|
|
|
|
# Create static gzip and brotli files
|
|
|
|
find -L $out -type f -regextype posix-extended -iregex '.*\.(html|js|txt)' \
|
|
|
|
-exec gzip --best --keep --force {} ';' \
|
|
|
|
-exec brotli --best --keep --no-copy-stat {} ';'
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Console Light is a lightweight, real-time activity monitoring interface";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://angie.software/en/console/";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = with lib.maintainers; [ izorkin ];
|
|
|
|
};
|
|
|
|
}
|