diff options
author | Janne Heß <janne@hess.ooo> | 2019-02-17 20:42:42 +0100 |
---|---|---|
committer | Janne Heß <janne@hess.ooo> | 2019-02-17 20:42:42 +0100 |
commit | 8a94a498863a7800081cecf296361c9a41eb74a0 (patch) | |
tree | d8d9d8cf679890c2ed145020c2d81b71cc245de2 /pkgs/servers/icingaweb2 | |
parent | 69ebac0ec46959bde92465270f643dd9d6940cd0 (diff) |
icingaweb2Modules: Init all themes I could find
Diffstat (limited to 'pkgs/servers/icingaweb2')
-rw-r--r-- | pkgs/servers/icingaweb2/theme-april/default.nix | 24 | ||||
-rw-r--r-- | pkgs/servers/icingaweb2/theme-lsd/default.nix | 24 | ||||
-rw-r--r-- | pkgs/servers/icingaweb2/theme-particles/default.nix | 24 | ||||
-rw-r--r-- | pkgs/servers/icingaweb2/theme-snow/default.nix | 30 | ||||
-rw-r--r-- | pkgs/servers/icingaweb2/theme-spring/default.nix | 24 | ||||
-rw-r--r-- | pkgs/servers/icingaweb2/theme-unicorn/default.nix | 45 |
6 files changed, 171 insertions, 0 deletions
diff --git a/pkgs/servers/icingaweb2/theme-april/default.nix b/pkgs/servers/icingaweb2/theme-april/default.nix new file mode 100644 index 000000000000..7c592fca33b6 --- /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 000000000000..273bcf6945d9 --- /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 000000000000..3d28481cd84e --- /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 000000000000..136168fc8d4a --- /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 000000000000..a21f6cc89a25 --- /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 000000000000..a43f7d7c09ad --- /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 ]; + }; +} |