Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / graphql-client / default.nix
blobb41a7a02bdc6ba033b9fe0c239f414a9979fac71
1 { lib, stdenv, rustPlatform, fetchCrate, pkg-config, openssl, Security }:
3 rustPlatform.buildRustPackage rec {
4   pname = "graphql-client";
5   version = "0.13.0";
7   src = fetchCrate {
8     inherit version;
9     crateName = "graphql_client_cli";
10     sha256 = "sha256-eQ+7Ru3au/rDQZtwFDXYyybqC5uFtNBs6cEzX2QSFI4=";
11   };
13   cargoSha256 = "sha256-fEjt7ax818hlIq2+UrIG6EismQUGdaq7/C3xN+Nrw2s=";
15   nativeBuildInputs = [
16     pkg-config
17   ];
18   buildInputs = [
19     openssl
20   ] ++ lib.optionals stdenv.isDarwin [ Security ];
22   meta = with lib; {
23     description = "A GraphQL tool for Rust projects";
24     homepage = "https://github.com/graphql-rust/graphql-client";
25     license = with licenses; [ asl20 /* or */ mit ];
26     maintainers = with maintainers; [ bbigras ];
27   };