diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/civetweb/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/civetweb/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/civetweb/default.nix b/nixpkgs/pkgs/development/libraries/civetweb/default.nix new file mode 100644 index 000000000000..8a3474a491f3 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/civetweb/default.nix @@ -0,0 +1,41 @@ +{ lib, stdenv +, fetchFromGitHub +}: + +stdenv.mkDerivation rec { + pname = "civetweb"; + version = "1.11"; + + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = "v${version}"; + sha256 = "1drnid6gs97cp9zpvsxz42yfj8djmgx98fg9p2993x9mpi547vzv"; + }; + + 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" ]; + + 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 ]; + }; +} |