mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
40a1952c78
https://github.com/apollographql/rover/blob/v0.22.0/CHANGELOG.md#0220---2023-12-13 There are self-reported breaking changes in the following intermediate versions: - 0.16.0 - 0.17.1 - 0.18.0
55 lines
1.5 KiB
Nix
55 lines
1.5 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, perl
|
|
, rustPlatform
|
|
, darwin
|
|
, stdenv
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rover";
|
|
version = "0.22.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "apollographql";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-+BsD7SRinU57Alg71N3tdL9iFGGdomVA7SrBE6G1f4E=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-SDvOxvfv8FNUebfwSFnBc6ormK2xpXPjmACwtllHfQE=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
darwin.apple_sdk.frameworks.CoreServices
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
perl
|
|
];
|
|
|
|
# This test checks whether the plugins specified in the plugins json file are
|
|
# valid by making a network call to the repo that houses their binaries; but, the
|
|
# build env can't make network calls (impurity)
|
|
cargoTestFlags = [
|
|
"-- --skip=latest_plugins_are_valid_versions"
|
|
];
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
# Some tests try to write configuration data to a location in the user's home
|
|
# directory. Since this would be /homeless-shelter during the build, point at
|
|
# a writeable location instead.
|
|
preCheck = ''
|
|
export APOLLO_CONFIG_HOME="$PWD"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A CLI for interacting with ApolloGraphQL's developer tooling, including managing self-hosted and GraphOS graphs.";
|
|
homepage = "https://www.apollographql.com/docs/rover";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.ivanbrennan maintainers.aaronarinder ];
|
|
};
|
|
}
|