2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2020-11-30 02:52:38 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "oatpp";
|
2021-02-18 12:50:08 +00:00
|
|
|
version = "1.2.5";
|
2020-11-30 02:52:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oatpp";
|
|
|
|
repo = "oatpp";
|
|
|
|
rev = version;
|
2021-02-18 12:50:08 +00:00
|
|
|
sha256 = "sha256-Vtdz03scx0hvY1yeM7yfSxCVKzi84OQ1Oh9b922movE=";
|
2020-11-30 02:52:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
# Tests fail on darwin. See https://github.com/NixOS/nixpkgs/pull/105419#issuecomment-735826894
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-11-30 02:52:38 +00:00
|
|
|
homepage = "https://oatpp.io/";
|
|
|
|
description = "Light and powerful C++ web framework for highly scalable and resource-efficient web applications";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ivar ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|