From 6eedd7cd4ee0bf680d238ec8307deed193882e18 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Sun, 27 Aug 2023 05:25:45 -0400 Subject: [PATCH] Fix ggelo-deps name --- flake.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 2995118..29d8a19 100644 --- a/flake.nix +++ b/flake.nix @@ -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 {