Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 skawarePackages, 3 stdenv, 4 skalibs, 5}: 6 7skawarePackages.buildPackage { 8 pname = "tipidee"; 9 version = "0.0.6.0"; 10 sha256 = "sha256-4q3YvhCJAi43kCQbk6xKWj5Y2tZF9dkZ+MunRM1KFwI="; 11 12 description = "HTTP 1.1 webserver, serving static files and CGI/NPH"; 13 14 outputs = [ 15 "bin" 16 "lib" 17 "out" 18 "dev" 19 "doc" 20 ]; 21 22 configureFlags = [ 23 "--libdir=\${lib}/lib" 24 "--libexecdir=\${lib}/libexec" 25 "--dynlibdir=\${lib}/lib" 26 "--bindir=\${bin}/bin" 27 "--includedir=\${dev}/include" 28 "--with-sysdeps=${skalibs.lib}/lib/skalibs/sysdeps" 29 "--with-include=${skalibs.dev}/include" 30 "--with-lib=${skalibs.lib}/lib" 31 "--with-dynlib=${skalibs.lib}/lib" 32 33 # we set sysconfdir to /etc here to allow tipidee-config 34 # to look in the global paths for its configs. 35 # This is not encouraged, but a valid use-case. 36 "--sysconfdir=/etc" 37 ]; 38 39 postInstall = '' 40 # remove all tipidee executables from build directory 41 rm $(find -type f -mindepth 1 -maxdepth 1 -executable) 42 rm libtipidee.* 43 44 mv doc $doc/share/doc/tipidee/html 45 mv examples $doc/share/doc/tipidee/examples 46 ''; 47 48 broken = stdenv.hostPlatform.isDarwin; 49}