depot/third_party/nixpkgs/pkgs/servers/icingaweb2/theme-snow/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
844 B
Nix

{ stdenv, lib, fetchFromGitHub }: 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 ];
};
}