mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
I do not have the time or energy to handle all of this. Let alone my GitHub notifications. This PR is in good faith and does not refer to anything community-related. I will keep on doing nixpkgs work but the pile of shame (let's call it that) needs to be cleaned. Thanks to @mweinelt which whom I had a discussion and who made me aware of this issue.
37 lines
828 B
Nix
37 lines
828 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "icingaweb2-theme-snow";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Mikesch-mp";
|
|
repo = pname;
|
|
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 = lib.licenses.publicDomain;
|
|
platforms = lib.platforms.all;
|
|
maintainers = [ ];
|
|
};
|
|
}
|