From d3047afa7f0255b6735a775f752f96c6ca0385ab Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 10 Jan 2025 16:07:59 +0300 Subject: [PATCH] rpkg: Set NIRI_BUILD_COMMIT in cargo.toml --- niri.spec.rpkg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/niri.spec.rpkg b/niri.spec.rpkg index a81aa5108..cc7e851d2 100644 --- a/niri.spec.rpkg +++ b/niri.spec.rpkg @@ -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}