10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
15 owner = "apollographql";
18 sha256 = "sha256-fVgo5Ds/VK0kBpF+F2FdMvBnQj2IB+B5ToOK8ONdq6c=";
21 cargoSha256 = "sha256-fNqnpLNENLJEhbqxLFUqyjAf8tEPCLoGSRV91gOY9LI=";
23 buildInputs = lib.optionals stdenv.isDarwin [
24 darwin.apple_sdk.frameworks.Security
25 darwin.apple_sdk.frameworks.CoreServices
32 # This test checks whether the plugins specified in the plugins json file are
33 # valid by making a network call to the repo that houses their binaries; but, the
34 # build env can't make network calls (impurity)
36 "-- --skip=latest_plugins_are_valid_versions"
39 # The rover-client's build script (xtask/src/commands/prep/schema.rs) will try to
40 # download the API's graphql schema at build time to our read-only filesystem.
41 # To avoid this we pre-download it to a location the build script checks.
43 cp ${./schema}/hash.id crates/rover-client/.schema/
44 cp ${./schema}/etag.id crates/rover-client/.schema/
45 cp ${./schema}/schema.graphql crates/rover-client/.schema/
48 passthru.updateScript = ./update.sh;
50 # Some tests try to write configuration data to a location in the user's home
51 # directory. Since this would be /homeless-shelter during the build, point at
52 # a writeable location instead.
54 export APOLLO_CONFIG_HOME="$PWD"
58 description = "A CLI for interacting with ApolloGraphQL's developer tooling, including managing self-hosted and GraphOS graphs.";
59 homepage = "https://www.apollographql.com/docs/rover";
60 license = licenses.mit;
61 maintainers = [ maintainers.ivanbrennan maintainers.aaronarinder ];