Skip to content

Commit

Permalink
Update flake to use shortRev built-in
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacdonald committed Oct 1, 2024
1 parent 6a59eae commit bb356d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
# Make the build/check/install commands explicit so we can
# provide the commit SHA for the splash screen
buildPhase = ''
export BUILD_REVISION=${builtins.substring 0 7 (
if self ? rev then self.rev else ""
)}
export BUILD_REVISION=${
if self ? shortRev then self.shortRev else ""
}
echo "BUILD_REVISION=$BUILD_REVISION"
cargo build --release
Expand Down

0 comments on commit bb356d0

Please sign in to comment.