Files
nixpkgs/pkgs/by-name/li/libhttpserver/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

55 lines
1.0 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
autoconf,
automake,
libtool,
gnutls,
libmicrohttpd,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libhttpserver";
version = "0.19.0";
src = fetchFromGitHub {
owner = "etr";
repo = "libhttpserver";
rev = finalAttrs.version;
hash = "sha256-Pc3Fvd8D4Ymp7dG9YgU58mDceOqNfhWE1JtnpVaNx/Y=";
};
nativeBuildInputs = [
autoconf
automake
libtool
];
buildInputs = [
gnutls
libmicrohttpd
];
enableParallelBuilding = true;
postPatch = ''
patchShebangs ./bootstrap
'';
preConfigure = ''
./bootstrap
'';
configureFlags = [ "--enable-same-directory-build" ];
meta = {
description = "C++ library for creating an embedded Rest HTTP server (and more)";
homepage = "https://github.com/etr/libhttpserver";
license = lib.licenses.lgpl21Plus;
maintainers = with lib.maintainers; [ pongo1231 ];
platforms = lib.platforms.unix;
broken = stdenv.hostPlatform.isDarwin; # configure: error: cannot find required auxiliary files: ltmain.sh
};
})