From 43171d38a4a7b9f006a3af22b794e37b528bbd6b Mon Sep 17 00:00:00 2001 From: IvarWithoutBones Date: Mon, 30 Nov 2020 03:52:38 +0100 Subject: [PATCH] oatpp: init at 1.2.0 --- pkgs/development/libraries/oatpp/default.nix | 29 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/libraries/oatpp/default.nix diff --git a/pkgs/development/libraries/oatpp/default.nix b/pkgs/development/libraries/oatpp/default.nix new file mode 100644 index 000000000000..38c021707615 --- /dev/null +++ b/pkgs/development/libraries/oatpp/default.nix @@ -0,0 +1,29 @@ +{ stdenv +, fetchFromGitHub +, cmake +}: + +stdenv.mkDerivation rec { + pname = "oatpp"; + version = "1.2.0"; + + src = fetchFromGitHub { + owner = "oatpp"; + repo = "oatpp"; + rev = version; + sha256 = "05rm0m5zf1b5ky8prf6yni2074bz6yjjbrc2qk96fb48fc1198gw"; + }; + + nativeBuildInputs = [ cmake ]; + + # Tests fail on darwin. See https://github.com/NixOS/nixpkgs/pull/105419#issuecomment-735826894 + doCheck = !stdenv.isDarwin; + + meta = with stdenv.lib; { + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3fc30afcfbaa..6d0947fcdbe1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6110,6 +6110,8 @@ in oathToolkit = callPackage ../tools/security/oath-toolkit { }; + oatpp = callPackage ../development/libraries/oatpp { }; + obex_data_server = callPackage ../tools/bluetooth/obex-data-server { }; obexd = callPackage ../tools/bluetooth/obexd { };