Fix ggelo-deps name

This commit is contained in:
Kiana Sheibani 2023-08-27 05:25:45 -04:00
parent 050ae2facf
commit 6eedd7cd4e
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -27,6 +27,7 @@
craneLib = crane.lib.${system}.overrideToolchain rustToolchain;
commonArgs = {
pname = "ggelo";
version = "0.1.0";
src = craneLib.path ./.;
cargoBuildFlags = "-p cli";
@ -37,19 +38,15 @@
# Cargo build dependencies/artifacts only
# This derivation exists so that multiple builds can reuse
# the same build artifacts
cargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
pname = "ggelo-deps";
});
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
# Run clippy (and deny all warnings) on the crate source
runClippy = craneLib.cargoClippy (commonArgs // {
pname = "ggelo";
cargoClippyExtraArgs = "--all-targets -- --deny warnings";
inherit cargoArtifacts;
});
ggelo = craneLib.buildPackage (commonArgs // {
pname = "ggelo";
inherit cargoArtifacts;
});
in {