summary refs log tree commit diff
path: root/pkgs/servers/icingaweb2/theme-unicorn
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2019-02-17 20:42:42 +0100
committerJanne Heß <janne@hess.ooo>2019-02-17 20:42:42 +0100
commit8a94a498863a7800081cecf296361c9a41eb74a0 (patch)
treed8d9d8cf679890c2ed145020c2d81b71cc245de2 /pkgs/servers/icingaweb2/theme-unicorn
parent69ebac0ec46959bde92465270f643dd9d6940cd0 (diff)
downloadnixpkgs-8a94a498863a7800081cecf296361c9a41eb74a0.tar
nixpkgs-8a94a498863a7800081cecf296361c9a41eb74a0.tar.gz
nixpkgs-8a94a498863a7800081cecf296361c9a41eb74a0.tar.bz2
nixpkgs-8a94a498863a7800081cecf296361c9a41eb74a0.tar.lz
nixpkgs-8a94a498863a7800081cecf296361c9a41eb74a0.tar.xz
nixpkgs-8a94a498863a7800081cecf296361c9a41eb74a0.tar.zst
nixpkgs-8a94a498863a7800081cecf296361c9a41eb74a0.zip
icingaweb2Modules: Init all themes I could find
Diffstat (limited to 'pkgs/servers/icingaweb2/theme-unicorn')
-rw-r--r--pkgs/servers/icingaweb2/theme-unicorn/default.nix45
1 files changed, 45 insertions, 0 deletions
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 ];
+  };
+}