Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 29 lines 793 B view raw
1{ lib, stdenv, rustPlatform, fetchCrate, pkg-config, openssl, Security }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "graphql-client"; 5 version = "0.13.0"; 6 7 src = fetchCrate { 8 inherit version; 9 crateName = "graphql_client_cli"; 10 hash = "sha256-eQ+7Ru3au/rDQZtwFDXYyybqC5uFtNBs6cEzX2QSFI4="; 11 }; 12 13 cargoHash = "sha256-fEjt7ax818hlIq2+UrIG6EismQUGdaq7/C3xN+Nrw2s="; 14 15 nativeBuildInputs = [ 16 pkg-config 17 ]; 18 buildInputs = [ 19 openssl 20 ] ++ lib.optionals stdenv.isDarwin [ Security ]; 21 22 meta = with lib; { 23 description = "GraphQL tool for Rust projects"; 24 mainProgram = "graphql-client"; 25 homepage = "https://github.com/graphql-rust/graphql-client"; 26 license = with licenses; [ asl20 /* or */ mit ]; 27 maintainers = with maintainers; [ bbigras ]; 28 }; 29}