overlay for packaging Seafile server for NixOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 821B

123456789101112131415161718192021222324252627282930
  1. { stdenv, fetchFromGitHub, lib,
  2. cmake,
  3. libevent,
  4. # optional:
  5. openssl, pth, oniguruma
  6. }:
  7. stdenv.mkDerivation rec {
  8. name = "libevhtp";
  9. version = "1.2.18";
  10. src = fetchFromGitHub {
  11. owner = "criticalstack";
  12. repo = "libevhtp";
  13. rev = version;
  14. sha256 = "sha256:085yzrawn0gkfgiz02vwmlhawyaba4yqx98q3y4p95fhzs5wqwcb";
  15. };
  16. nativeBuildInputs = [ cmake ];
  17. buildInputs = [ libevent pth openssl ];
  18. propagatedBuildInputs = [ oniguruma ];
  19. cmakeFlags = [ "-DEVHTP_DISABLE_SSL=OFF" "-DEVHTP_BUILD_SHARED=ON" ];
  20. meta = {
  21. description = "Create extremely-fast and secure embedded HTTP servers with ease.";
  22. homepage = "https://github.com/ellzey/libevhtp";
  23. license = lib.licenses.bsd3;
  24. platforms = lib.platforms.unix;
  25. maintainers = with lib.maintainers; [ schmittlauch ];
  26. };
  27. }