depot/third_party/nixpkgs/pkgs/development/libraries/civetweb/default.nix
Default email 408a0d163f Project import generated by Copybara.
GitOrigin-RevId: e019872af81e4013fd518fcacfba74b1de21a50e
2021-04-13 15:44:15 -04:00

48 lines
874 B
Nix

{ lib, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "civetweb";
version = "1.14";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-6qBsM9zkN838cMtpE3+c7qcrFpZCS/Av7Ch7EWmlnD4=";
};
makeFlags = [
"WITH_CPP=1"
"PREFIX=${placeholder "out"}"
"LIBDIR=${placeholder "out"}/lib"
"INCLUDEDIR=${placeholder "dev"}/include"
];
patches = [
./0001-allow-setting-paths-in-makefile.patch
];
strictDeps = true;
outputs = [ "out" "dev" ];
installTargets = [
"install-headers"
"install-lib"
"install-slib"
"install"
];
preInstall = ''
mkdir -p $dev/include
mkdir -p $out/lib
'';
meta = {
description = "Embedded C/C++ web server";
homepage = "https://github.com/civetweb/civetweb";
license = [ lib.licenses.mit ];
};
}