From 8a94a498863a7800081cecf296361c9a41eb74a0 Mon Sep 17 00:00:00 2001 From: Janne Heß Date: Sun, 17 Feb 2019 20:42:42 +0100 Subject: icingaweb2Modules: Init all themes I could find --- pkgs/servers/icingaweb2/theme-snow/default.nix | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkgs/servers/icingaweb2/theme-snow/default.nix (limited to 'pkgs/servers/icingaweb2/theme-snow') diff --git a/pkgs/servers/icingaweb2/theme-snow/default.nix b/pkgs/servers/icingaweb2/theme-snow/default.nix new file mode 100644 index 00000000000..136168fc8d4 --- /dev/null +++ b/pkgs/servers/icingaweb2/theme-snow/default.nix @@ -0,0 +1,30 @@ +{ stdenv, lib, fetchFromGitHub, gawk }: with lib; stdenv.mkDerivation rec { + name = "icingaweb2-theme-snow"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "Mikesch-mp"; + repo = name; + rev = "v${version}"; + sha256 = "1c974v85mbsis52y2knwzh33996q8sza7pqrcs6ydx033s0rxjrp"; + }; + + patchPhase = '' + # Module info contains some fancy ascii art which breaks the module list + + awk -i inplace 'BEGIN {empty=0;write=1;}{if ($0 == ""){empty++;};if(empty==2){write=0};if (write==1){print $0}}' module.info + ''; + + installPhase = '' + mkdir -p "$out" + cp -r * "$out" + ''; + + meta = { + description = "Snow theme for Icingaweb 2"; + homepage = "https://github.com/Mikesch-mp/icingaweb2-theme-snow"; + license = licenses.publicDomain; + platforms = platforms.all; + maintainers = with maintainers; [ das_j ]; + }; +} -- cgit 1.4.1