From 8a94a498863a7800081cecf296361c9a41eb74a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Sun, 17 Feb 2019 20:42:42 +0100 Subject: [PATCH] icingaweb2Modules: Init all themes I could find --- .../icingaweb2/theme-april/default.nix | 24 ++++++++++ pkgs/servers/icingaweb2/theme-lsd/default.nix | 24 ++++++++++ .../icingaweb2/theme-particles/default.nix | 24 ++++++++++ .../servers/icingaweb2/theme-snow/default.nix | 30 +++++++++++++ .../icingaweb2/theme-spring/default.nix | 24 ++++++++++ .../icingaweb2/theme-unicorn/default.nix | 45 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 7 +++ 7 files changed, 178 insertions(+) create mode 100644 pkgs/servers/icingaweb2/theme-april/default.nix create mode 100644 pkgs/servers/icingaweb2/theme-lsd/default.nix create mode 100644 pkgs/servers/icingaweb2/theme-particles/default.nix create mode 100644 pkgs/servers/icingaweb2/theme-snow/default.nix create mode 100644 pkgs/servers/icingaweb2/theme-spring/default.nix create mode 100644 pkgs/servers/icingaweb2/theme-unicorn/default.nix diff --git a/pkgs/servers/icingaweb2/theme-april/default.nix b/pkgs/servers/icingaweb2/theme-april/default.nix new file mode 100644 index 00000000000..7c592fca33b --- /dev/null +++ b/pkgs/servers/icingaweb2/theme-april/default.nix @@ -0,0 +1,24 @@ +{ stdenv, lib, fetchFromGitHub }: with lib; stdenv.mkDerivation rec { + name = "icingaweb2-theme-april"; + version = "1.0.4"; + + src = fetchFromGitHub { + owner = "Mikesch-mp"; + repo = name; + rev = "v${version}"; + sha256 = "0i1js2k47llzgmc77q9frvcmr02mqlhg0qhswx1486fvm6myxg0g"; + }; + + installPhase = '' + mkdir -p "$out" + cp -r * "$out" + ''; + + meta = { + description = "Icingaweb2 theme for april fools"; + homepage = "https://github.com/Mikesch-mp/icingaweb2-theme-april"; + license = licenses.publicDomain; + platforms = platforms.all; + maintainers = with maintainers; [ das_j ]; + }; +} diff --git a/pkgs/servers/icingaweb2/theme-lsd/default.nix b/pkgs/servers/icingaweb2/theme-lsd/default.nix new file mode 100644 index 00000000000..273bcf6945d --- /dev/null +++ b/pkgs/servers/icingaweb2/theme-lsd/default.nix @@ -0,0 +1,24 @@ +{ stdenv, lib, fetchFromGitHub }: with lib; stdenv.mkDerivation rec { + name = "icingaweb2-theme-lsd"; + version = "1.0.3"; + + src = fetchFromGitHub { + owner = "Mikesch-mp"; + repo = name; + rev = "v${version}"; + sha256 = "172y08sar4nbyv5pfq5chw8xa3b7fg1dacmsg778zky5zf49qz2w"; + }; + + installPhase = '' + mkdir -p "$out" + cp -r * "$out" + ''; + + meta = { + description = "Psychadelic theme for IcingaWeb 2"; + homepage = "https://github.com/Mikesch-mp/icingaweb2-theme-lsd"; + license = licenses.publicDomain; + platforms = platforms.all; + maintainers = with maintainers; [ das_j ]; + }; +} diff --git a/pkgs/servers/icingaweb2/theme-particles/default.nix b/pkgs/servers/icingaweb2/theme-particles/default.nix new file mode 100644 index 00000000000..3d28481cd84 --- /dev/null +++ b/pkgs/servers/icingaweb2/theme-particles/default.nix @@ -0,0 +1,24 @@ +{ stdenv, lib, fetchFromGitHub }: with lib; stdenv.mkDerivation rec { + name = "icingaweb2-theme-particles"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "Mikesch-mp"; + repo = name; + rev = "v${version}"; + sha256 = "0m6bbz191686k4djqbk8v0zcdm4cyi159jb3zwz7q295xbpi2vfy"; + }; + + installPhase = '' + mkdir -p "$out" + cp -r * "$out" + ''; + + meta = { + description = "This theme adds a nice particle effect to the login screen of Icingaweb 2"; + homepage = "https://github.com/Mikesch-mp/icingaweb2-theme-particles"; + license = licenses.publicDomain; + platforms = platforms.all; + maintainers = with maintainers; [ das_j ]; + }; +} 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 ]; + }; +} diff --git a/pkgs/servers/icingaweb2/theme-spring/default.nix b/pkgs/servers/icingaweb2/theme-spring/default.nix new file mode 100644 index 00000000000..a21f6cc89a2 --- /dev/null +++ b/pkgs/servers/icingaweb2/theme-spring/default.nix @@ -0,0 +1,24 @@ +{ stdenv, lib, fetchFromGitHub }: with lib; stdenv.mkDerivation rec { + name = "icingaweb2-theme-spring"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "Mikesch-mp"; + repo = name; + rev = "v${version}"; + sha256 = "09v4871pndarhm2spxm9fdab58l5wj8m40kh53wvk1xc3g7pqki9"; + }; + + installPhase = '' + mkdir -p "$out" + cp -r * "$out" + ''; + + meta = { + description = "Theme with some soft colors and nice background images loaded from unsplash.com"; + homepage = "https://github.com/Mikesch-mp/icingaweb2-theme-spring"; + license = licenses.publicDomain; + platforms = platforms.all; + maintainers = with maintainers; [ das_j ]; + }; +} diff --git a/pkgs/servers/icingaweb2/theme-unicorn/default.nix b/pkgs/servers/icingaweb2/theme-unicorn/default.nix new file mode 100644 index 00000000000..a43f7d7c09a --- /dev/null +++ b/pkgs/servers/icingaweb2/theme-unicorn/default.nix @@ -0,0 +1,45 @@ +{ stdenv, lib, fetchurl, fetchFromGitHub }: with lib; stdenv.mkDerivation rec { + name = "icingaweb2-theme-unicorn"; + version = "1.0.2"; + + srcs = [ + (fetchFromGitHub { + owner = "Mikesch-mp"; + repo = name; + rev = "v${version}"; + sha256 = "1qmcajdf0g70vp2avqa50lfrfigq22k91kggbgn5ablwyg9dki05"; + }) + (fetchurl { + url = "http://i.imgur.com/SCfMd.png"; + sha256 = "1y6wqm1z6mn0a6jankd7pzqgi7zm5320kk6knvbv3qhzx2b74ypp"; + }) + ]; + + unpackPhase = '' + for src in $srcs; do + case $src in + *.png) + cp $src unicorn.png + ;; + *) + cp -r $src/* . + ;; + esac + done + ''; + + installPhase = '' + mkdir -p "$out" + cp -r * "$out" + chmod 755 $out/public/img + cp unicorn.png "$out/public/img/unicorn.png" + ''; + + meta = { + description = "Unicorn theme for IcingaWeb 2"; + homepage = "https://github.com/Mikesch-mp/icingaweb2-theme-unicorn"; + license = licenses.publicDomain; + platforms = platforms.all; + maintainers = with maintainers; [ das_j ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9c7bfd26d43..f7deef1ae5e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13595,6 +13595,13 @@ in hydron = callPackage ../servers/hydron { }; icingaweb2 = callPackage ../servers/icingaweb2 { }; + icingaweb2Modules = { + theme-april = callPackage ../servers/icingaweb2/theme-april { }; + theme-lsd = callPackage ../servers/icingaweb2/theme-lsd { }; + theme-particles = callPackage ../servers/icingaweb2/theme-particles { }; + theme-snow = callPackage ../servers/icingaweb2/theme-snow { }; + theme-spring = callPackage ../servers/icingaweb2/theme-spring { }; + }; ircdHybrid = callPackage ../servers/irc/ircd-hybrid { };