2024-05-15 15:35:15 +00:00
|
|
|
{ skawarePackages, stdenv, skalibs }:
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
skawarePackages.buildPackage {
|
2023-11-16 04:20:00 +00:00
|
|
|
pname = "tipidee";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.0.4.0";
|
|
|
|
sha256 = "sha256-FzZRGg8IBTkzXINb9WCdVukej9KyPFQIUuXfdcLz1RQ=";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
description = "A HTTP 1.1 webserver, serving static files and CGI/NPH";
|
|
|
|
|
|
|
|
outputs = [ "bin" "lib" "out" "dev" "doc" ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--libdir=\${lib}/lib"
|
|
|
|
"--libexecdir=\${lib}/libexec"
|
|
|
|
"--dynlibdir=\${lib}/lib"
|
|
|
|
"--bindir=\${bin}/bin"
|
|
|
|
"--includedir=\${dev}/include"
|
|
|
|
"--with-sysdeps=${skalibs.lib}/lib/skalibs/sysdeps"
|
|
|
|
"--with-include=${skalibs.dev}/include"
|
|
|
|
"--with-lib=${skalibs.lib}/lib"
|
|
|
|
"--with-dynlib=${skalibs.lib}/lib"
|
|
|
|
|
|
|
|
# we set sysconfdir to /etc here to allow tipidee-config
|
|
|
|
# to look in the global paths for its configs.
|
|
|
|
# This is not encouraged, but a valid use-case.
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# remove all tipidee executables from build directory
|
|
|
|
rm $(find -type f -mindepth 1 -maxdepth 1 -executable)
|
|
|
|
rm libtipidee.*
|
|
|
|
|
|
|
|
mv doc $doc/share/doc/tipidee/html
|
|
|
|
mv examples $doc/share/doc/tipidee/examples
|
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2023-11-16 04:20:00 +00:00
|
|
|
}
|