2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, curl, cmake, nlohmann_json }:
|
2016-11-09 13:09:27 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cpp-ipfs-api";
|
2017-01-04 09:42:13 +00:00
|
|
|
version = "2017-01-04";
|
2016-11-09 13:09:27 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vasild";
|
|
|
|
repo = "cpp-ipfs-api";
|
2017-01-04 09:42:13 +00:00
|
|
|
rev = "96a890f4518665a56581a2a52311eaa65928eac8";
|
|
|
|
sha256 = "1z6gbd7npg4pd9wmdyzcp9h12sg84d7a43c69pp4lzqkyqg8pz1g";
|
2016-11-09 13:09:27 +00:00
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ curl ];
|
2016-11-09 13:09:27 +00:00
|
|
|
propagatedBuildInputs = [ nlohmann_json ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2016-11-09 13:09:27 +00:00
|
|
|
description = "IPFS C++ API client library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/vasild/cpp-ipfs-api";
|
2016-11-09 13:09:27 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|