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 { };