forge
Explore
Log in

Don't you dare go Hollow

rpkg: Set NIRI_BUILD_COMMIT in cargo.toml

Browse files at this commit

d3047afa7f0255b6735a775f752f96c6ca0385abIvan MolodetskikhParent: a03783f
niri.spec.rpkgmodified+3 -1
@@ -111,8 +111,10 @@ sed -i 's/^offline = true$//' .cargo/config.toml
111 # Final step in leaving alone our debug settings.111 # Final step in leaving alone our debug settings.
112 sed -i 's/.*please-remove-me$//' .cargo/config.toml112 sed -i 's/.*please-remove-me$//' .cargo/config.toml
113 113
114+# Set the commit string.
115+sed -i 's/\[env\]/[env]\nNIRI_BUILD_COMMIT="%{version}"/' .cargo/config.toml
116+
114 %build117 %build
115-export NIRI_BUILD_COMMIT="%{version}"
116 %cargo_build118 %cargo_build
117 %{cargo_license_summary}119 %{cargo_license_summary}
118 120