Files
nixpkgs/pkgs/by-name/ro/rover/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

61 lines
1.4 KiB
Nix

{
lib,
fetchFromGitHub,
pkg-config,
rustPlatform,
openssl,
}:
rustPlatform.buildRustPackage rec {
pname = "rover";
version = "0.24.0";
src = fetchFromGitHub {
owner = "apollographql";
repo = "rover";
rev = "v${version}";
sha256 = "sha256-uyeePAHBDCzXzwIWrKcc9LHClwSI7DMBYod/o4LfK+Y=";
};
cargoHash = "sha256-uR5XvkHUmZzCHZITKgScmzqjLOIvbPyrih/0B1OpsAc=";
buildInputs = [
openssl
];
nativeBuildInputs = [
pkg-config
];
env = {
OPENSSL_NO_VENDOR = true;
};
# 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 = "CLI for interacting with ApolloGraphQL's developer tooling, including managing self-hosted and GraphOS graphs";
mainProgram = "rover";
homepage = "https://www.apollographql.com/docs/rover";
license = licenses.mit;
maintainers = [
maintainers.ivanbrennan
maintainers.aaronarinder
];
};
}