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