diff options
author | Izorkin <izorkin@elven.pw> | 2023-11-20 23:08:06 +0300 |
---|---|---|
committer | Izorkin <izorkin@elven.pw> | 2023-12-17 22:43:14 +0300 |
commit | c580ebee409e5bfad058c4c39dad5535fcbbee5a (patch) | |
tree | 8512f726da8bf279cbfe46fe54d35118fac873a3 /pkgs/servers/http | |
parent | 86efccfa45b058d51c429105dc2108e2ad1da005 (diff) | |
download | nixlib-c580ebee409e5bfad058c4c39dad5535fcbbee5a.tar nixlib-c580ebee409e5bfad058c4c39dad5535fcbbee5a.tar.gz nixlib-c580ebee409e5bfad058c4c39dad5535fcbbee5a.tar.bz2 nixlib-c580ebee409e5bfad058c4c39dad5535fcbbee5a.tar.lz nixlib-c580ebee409e5bfad058c4c39dad5535fcbbee5a.tar.xz nixlib-c580ebee409e5bfad058c4c39dad5535fcbbee5a.tar.zst nixlib-c580ebee409e5bfad058c4c39dad5535fcbbee5a.zip |
angie-console-light: init at 1.1.1
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r-- | pkgs/servers/http/angie/console-light.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/servers/http/angie/console-light.nix b/pkgs/servers/http/angie/console-light.nix new file mode 100644 index 000000000000..c39a2001c16c --- /dev/null +++ b/pkgs/servers/http/angie/console-light.nix @@ -0,0 +1,48 @@ +{ lib +, stdenv +, fetchurl +, gzip +, brotli +}: + +stdenv.mkDerivation rec { + version = "1.1.1"; + pname = "angie-console-light"; + + src = fetchurl { + url = "https://download.angie.software/files/${pname}/${pname}-${version}.tar.gz"; + hash = "sha256-Teg+EPl4IvmScTTX3F3rdM6qZ3ztFkMks9oo2B1xHTs="; + }; + + 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 = { + description = "Console Light is a lightweight, real-time activity monitoring interface."; + homepage = "https://angie.software/en/console/"; + license = lib.licenses.asl20; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ izorkin ]; + }; +} |