Skip to content

Commit

Permalink
rpkg: Set NIRI_BUILD_COMMIT in cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
YaLTeR committed Jan 10, 2025
1 parent a03783f commit d3047af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion niri.spec.rpkg
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ sed -i 's/^offline = true$//' .cargo/config.toml
# Final step in leaving alone our debug settings.
sed -i 's/.*please-remove-me$//' .cargo/config.toml

# Set the commit string.
sed -i 's/\[env\]/[env]\nNIRI_BUILD_COMMIT="%{version}"/' .cargo/config.toml

%build
export NIRI_BUILD_COMMIT="%{version}"
%cargo_build
%{cargo_license_summary}

Expand Down

0 comments on commit d3047af

Please sign in to comment.