lighttpd: install configuration examples
Place them in $out/share/lighttpd/doc/config/. Most importantly, this includes a complete set of mime types in the $out/share/lighttpd/doc/config/conf.d/mime.conf file. The plan is to use that file in the NixOS lighttpd module.
This commit is contained in:
parent
b339e6e13f
commit
a65d8d3af3
@ -26,6 +26,15 @@ stdenv.mkDerivation rec {
|
||||
sed -i "s:/usr/bin/file:${file}/bin/file:g" configure
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p "$out/share/lighttpd/doc/config"
|
||||
cp -vr doc/config "$out/share/lighttpd/doc/"
|
||||
# Remove files that references needless store paths (dependency bloat)
|
||||
rm "$out/share/lighttpd/doc/config/Makefile"*
|
||||
rm "$out/share/lighttpd/doc/config/conf.d/Makefile"*
|
||||
rm "$out/share/lighttpd/doc/config/vhosts.d/Makefile"*
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Lightweight high-performance web server";
|
||||
homepage = http://www.lighttpd.net/;
|
||||
|
Loading…
Reference in New Issue
Block a user