From ffdf7ec2341726eedd19333c7a8a8b4bd8a16f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20G=C3=BCntner?= Date: Wed, 9 Nov 2016 14:09:27 +0100 Subject: [PATCH] cpp-ipfs-api: init at 2016-11-09 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maximilian Güntner --- .../libraries/cpp-ipfs-api/default.nix | 23 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/libraries/cpp-ipfs-api/default.nix diff --git a/pkgs/development/libraries/cpp-ipfs-api/default.nix b/pkgs/development/libraries/cpp-ipfs-api/default.nix new file mode 100644 index 000000000000..2c9d36154a2b --- /dev/null +++ b/pkgs/development/libraries/cpp-ipfs-api/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchFromGitHub, curl, cmake, nlohmann_json }: + +stdenv.mkDerivation rec { + name = "cpp-ipfs-api-${version}"; + version = "2016-11-09"; + + src = fetchFromGitHub { + owner = "vasild"; + repo = "cpp-ipfs-api"; + rev = "46e473e49ede4fd829235f1d4930754d5356a747"; + sha256 = "10c5hmg9857zb0fp262ca4a42gq9iqdyqz7f975cp3qs70x12q08"; + }; + + buildInputs = [ cmake curl ]; + propagatedBuildInputs = [ nlohmann_json ]; + + meta = with stdenv.lib; { + description = "IPFS C++ API client library"; + homepage = https://github.com/vasild/cpp-ipfs-api; + license = licenses.mit; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7588e7ba7e6f..70a1e950e24a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6805,6 +6805,8 @@ in cpp-hocon = callPackage ../development/libraries/cpp-hocon { }; + cpp-ipfs-api = callPackage ../development/libraries/cpp-ipfs-api { }; + cpp-netlib = callPackage ../development/libraries/cpp-netlib { }; uri = callPackage ../development/libraries/uri { };