1{ lib, stdenv, fetchFromGitHub, curl, cmake, nlohmann_json }: 2 3stdenv.mkDerivation { 4 pname = "cpp-ipfs-api"; 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 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ curl ]; 16 propagatedBuildInputs = [ nlohmann_json ]; 17 18 meta = with lib; { 19 description = "IPFS C++ API client library"; 20 homepage = "https://github.com/vasild/cpp-ipfs-api"; 21 license = licenses.mit; 22 platforms = platforms.all; 23 }; 24}