1{ stdenv, fetchFromGitHub, curl, cmake, nlohmann_json }:
2
3stdenv.mkDerivation rec {
4 name = "cpp-ipfs-api-${version}";
5 version = "2017-01-04";
6
7 src = fetchFromGitHub {
8 owner = "vasild";
9 repo = "cpp-ipfs-api";
10 rev = "96a890f4518665a56581a2a52311eaa65928eac8";
11 sha256 = "1z6gbd7npg4pd9wmdyzcp9h12sg84d7a43c69pp4lzqkyqg8pz1g";
12 };
13
14 buildInputs = [ cmake curl ];
15 propagatedBuildInputs = [ nlohmann_json ];
16
17 meta = with stdenv.lib; {
18 description = "IPFS C++ API client library";
19 homepage = https://github.com/vasild/cpp-ipfs-api;
20 license = licenses.mit;
21 platforms = platforms.all;
22 };
23}