depot/third_party/nixpkgs/pkgs/development/libraries/civetweb/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

48 lines
867 B
Nix

{ lib, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "civetweb";
version = "1.13";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "/q7Q1lavIR3i126uI4NsKByHJ6Tp+DSN60R4YxR506U=";
};
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 ];
};
}