2021-10-28 06:52:43 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchCrate, pkg-config, openssl, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "graphql-client";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.13.0";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit version;
|
|
|
|
crateName = "graphql_client_cli";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-eQ+7Ru3au/rDQZtwFDXYyybqC5uFtNBs6cEzX2QSFI4=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
cargoSha256 = "sha256-fEjt7ax818hlIq2+UrIG6EismQUGdaq7/C3xN+Nrw2s=";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "GraphQL tool for Rust projects";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "graphql-client";
|
2021-10-28 06:52:43 +00:00
|
|
|
homepage = "https://github.com/graphql-rust/graphql-client";
|
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ bbigras ];
|
|
|
|
};
|
|
|
|
}
|