22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
28 lines
709 B
Nix
28 lines
709 B
Nix
{ lib, stdenv, fetchFromGitHub, curl, cmake, nlohmann_json }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "cpp-ipfs-api";
|
|
version = "2017-01-04";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vasild";
|
|
repo = "cpp-ipfs-api";
|
|
rev = "96a890f4518665a56581a2a52311eaa65928eac8";
|
|
sha256 = "1z6gbd7npg4pd9wmdyzcp9h12sg84d7a43c69pp4lzqkyqg8pz1g";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ curl ];
|
|
propagatedBuildInputs = [ nlohmann_json ];
|
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
"-Wno-error=range-loop-construct"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "IPFS C++ API client library";
|
|
homepage = "https://github.com/vasild/cpp-ipfs-api";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|