fix: git sha for cli

This commit is contained in:
Jonathan Kelley committed 2026-05-07 16:59:46 -07:00
1 parent d1ead872b1
commit bfcc111817
3 files changed
+151 -25

No files matched your search

+11 -4
View File
@@ -98,12 +98,19 @@
);
in
{
packages.dioxus-cli = (
rustPackage "dioxus-cli" {
packages.dioxus-cli =
(rustPackage "dioxus-cli" {
binary = "dx";
features = [ "no-downloads" ];
}
);
}).overrideAttrs
(_: {
# The nix sandbox has no .git and no .cargo_vcs_info.json, so
# build.rs has nothing to derive the commit from. Pass the
# flake's own input rev through the env-var override path.
# `self.rev` is set on a clean tree; `dirtyRev` on a dirty one
# (and includes a `-dirty` suffix, which build.rs accepts).
DIOXUS_CLI_GIT_SHA = inputs.self.rev or inputs.self.dirtyRev or "";
});
packages.default = self'.packages.dioxus-cli;
checks.dioxus-cli = self'.packages.dioxus-cli;