Merge pull request #55963 from dasJ/icingaweb2-themes
icingaweb2Modules: Init all themes I could find
This commit is contained in:
commit
1cc5c76e87
24
pkgs/servers/icingaweb2/theme-april/default.nix
Normal file
24
pkgs/servers/icingaweb2/theme-april/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
24
pkgs/servers/icingaweb2/theme-lsd/default.nix
Normal file
24
pkgs/servers/icingaweb2/theme-lsd/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
24
pkgs/servers/icingaweb2/theme-particles/default.nix
Normal file
24
pkgs/servers/icingaweb2/theme-particles/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
30
pkgs/servers/icingaweb2/theme-snow/default.nix
Normal file
30
pkgs/servers/icingaweb2/theme-snow/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
24
pkgs/servers/icingaweb2/theme-spring/default.nix
Normal file
24
pkgs/servers/icingaweb2/theme-spring/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
45
pkgs/servers/icingaweb2/theme-unicorn/default.nix
Normal file
45
pkgs/servers/icingaweb2/theme-unicorn/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user