nixpkgs/pkgs/development/libraries/civetweb/default.nix

49 lines
874 B
Nix
Raw Normal View History

{ lib, stdenv
2019-03-07 09:50:06 +01:00
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "civetweb";
2021-09-06 04:59:12 +02:00
version = "1.15";
2019-03-07 09:50:06 +01:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2021-09-06 04:59:12 +02:00
sha256 = "sha256-Qh6BGPk7a01YzCeX42+Og9M+fjXRs7kzNUCyT4mYab4=";
2019-03-07 09:50:06 +01:00
};
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" ];
2020-12-27 18:55:22 +01:00
installTargets = [
"install-headers"
"install-lib"
"install-slib"
"install"
];
2019-03-07 09:50:06 +01:00
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 ];
2019-03-07 09:50:06 +01:00
};
}