From 3e6a77b9802ec837760164e090156d79135e7b70 Mon Sep 17 00:00:00 2001 From: syzygial Date: Fri, 3 Mar 2023 13:36:10 -0500 Subject: [PATCH] Rename Crate Flake --- flake.nix | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/flake.nix b/flake.nix index 2c865fe..c64d5e3 100644 --- a/flake.nix +++ b/flake.nix @@ -50,14 +50,14 @@ # Build the actual crate itself, reusing the dependency # artifacts from above. - my-crate = craneLib.buildPackage (commonArgs // { + newalan = craneLib.buildPackage (commonArgs // { inherit cargoArtifacts; }); in { checks = { # Build the crate as part of `nix flake check` for convenience - inherit my-crate; + inherit newalan; # Run clippy (and deny all warnings) on the crate source, # again, resuing the dependency artifacts from above. @@ -65,29 +65,29 @@ # Note that this is done as a separate derivation so that # we can block the CI if there are issues here, but not # prevent downstream consumers from building our crate by itself. - my-crate-clippy = craneLib.cargoClippy (commonArgs // { + newalan-clippy = craneLib.cargoClippy (commonArgs // { inherit cargoArtifacts; cargoClippyExtraArgs = "--all-targets -- --deny warnings"; }); - my-crate-doc = craneLib.cargoDoc (commonArgs // { + newalan-doc = craneLib.cargoDoc (commonArgs // { inherit cargoArtifacts; }); # Check formatting - my-crate-fmt = craneLib.cargoFmt { + newalan-fmt = craneLib.cargoFmt { inherit src; }; # Audit dependencies - my-crate-audit = craneLib.cargoAudit { + newalan-audit = craneLib.cargoAudit { inherit src advisory-db; }; # Run tests with cargo-nextest - # Consider setting `doCheck = false` on `my-crate` if you do not want + # Consider setting `doCheck = false` on `newalan` if you do not want # the tests to run twice - my-crate-nextest = craneLib.cargoNextest (commonArgs // { + newalan-nextest = craneLib.cargoNextest (commonArgs // { inherit cargoArtifacts; partitions = 1; partitionType = "count"; @@ -95,15 +95,15 @@ } // lib.optionalAttrs (system == "x86_64-linux") { # NB: cargo-tarpaulin only supports x86_64 systems # Check code coverage (note: this will not upload coverage anywhere) - my-crate-coverage = craneLib.cargoTarpaulin (commonArgs // { + newalan-coverage = craneLib.cargoTarpaulin (commonArgs // { inherit cargoArtifacts; }); }; - packages.default = my-crate; + packages.default = newalan; apps.default = flake-utils.lib.mkApp { - drv = my-crate; + drv = newalan; }; devShells.default = pkgs.mkShell {