Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 36 lines 854 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "icingaweb2-theme-snow"; 9 version = "1.0.0"; 10 11 src = fetchFromGitHub { 12 owner = "Mikesch-mp"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "1c974v85mbsis52y2knwzh33996q8sza7pqrcs6ydx033s0rxjrp"; 16 }; 17 18 patchPhase = '' 19 # Module info contains some fancy ascii art which breaks the module list 20 21 awk -i inplace 'BEGIN {empty=0;write=1;}{if ($0 == ""){empty++;};if(empty==2){write=0};if (write==1){print $0}}' module.info 22 ''; 23 24 installPhase = '' 25 mkdir -p "$out" 26 cp -r * "$out" 27 ''; 28 29 meta = with lib; { 30 description = "Snow theme for Icingaweb 2"; 31 homepage = "https://github.com/Mikesch-mp/icingaweb2-theme-snow"; 32 license = licenses.publicDomain; 33 platforms = platforms.all; 34 maintainers = with maintainers; [ das_j ]; 35 }; 36}