diff --git a/flake.nix b/flake.nix index 3d72410..5dd2d1b 100644 --- a/flake.nix +++ b/flake.nix @@ -41,12 +41,6 @@ # Additional darwin specific inputs can be set here pkgs.libiconv ]; - - # Additional environment variables can be set directly - # MY_CUSTOM_VAR = "some value"; - COMMIT_HASH = builtins.substring 0 7 ( - if self ? rev then self.rev else "NoDHash" - ); }; craneLibLLvmTools = craneLib.overrideToolchain @@ -64,6 +58,12 @@ # artifacts from above. my-crate = craneLib.buildPackage (commonArgs // { inherit cargoArtifacts; + + # Additional environment variables can be set directly + # MY_CUSTOM_VAR = "some value"; + COMMIT_HASH = builtins.substring 0 7 ( + if self ? rev then self.rev else "NoDHash" + ); }); in {