nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 brotli,
6}:
7
8stdenv.mkDerivation rec {
9 version = "1.8.2";
10 pname = "angie-console-light";
11
12 src = fetchurl {
13 url = "https://download.angie.software/files/${pname}/${pname}-${version}.tar.gz";
14 hash = "sha256-q27UPgWvOoEXa8Ih3sEFuoO7u5gvLtpoe7ZJYMmZtRc=";
15 };
16
17 outputs = [
18 "out"
19 "doc"
20 ];
21
22 nativeBuildInputs = [ brotli ];
23
24 dontConfigure = true;
25 dontBuild = true;
26
27 installPhase = ''
28 runHook preInstall
29
30 mkdir -p $out/share/angie-console-light
31 mv ./html $out/share/angie-console-light
32
33 mkdir -p $doc/share/doc/angie-console-light
34 mv ./LICENSE $doc/share/doc/angie-console-light
35
36 # Create static gzip and brotli files
37 find -L $out -type f -regextype posix-extended -iregex '.*\.(html|js|txt)' \
38 -exec gzip --best --keep --force {} ';' \
39 -exec brotli --best --keep --no-copy-stat {} ';'
40
41 runHook postInstall
42 '';
43
44 meta = {
45 description = "Console Light is a lightweight, real-time activity monitoring interface";
46 homepage = "https://angie.software/en/console/";
47 license = lib.licenses.asl20;
48 platforms = lib.platforms.all;
49 maintainers = with lib.maintainers; [ izorkin ];
50 };
51}