1{
2 lib,
3 rustPlatform,
4 fetchCrate,
5 pkg-config,
6 openssl,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "graphql-client";
11 version = "0.13.0";
12
13 src = fetchCrate {
14 inherit version;
15 crateName = "graphql_client_cli";
16 hash = "sha256-eQ+7Ru3au/rDQZtwFDXYyybqC5uFtNBs6cEzX2QSFI4=";
17 };
18
19 cargoHash = "sha256-GPUOIDKlxk2P+cPmOPlpz/EM9TCXvHo41+1fQ0xAqto=";
20
21 nativeBuildInputs = [
22 pkg-config
23 ];
24 buildInputs = [
25 openssl
26 ];
27
28 meta = with lib; {
29 description = "GraphQL tool for Rust projects";
30 mainProgram = "graphql-client";
31 homepage = "https://github.com/graphql-rust/graphql-client";
32 license = with licenses; [
33 asl20 # or
34 mit
35 ];
36 maintainers = with maintainers; [ bbigras ];
37 };
38}