aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-01-10 15:15:20 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-01-10 15:25:49 +0300
commit64288de04ec80078dcfc9308dff4fde0ee933229 (patch)
treec1cf217aeff0c6ca524457abc9514c045146691d
parentfb4471e69df64122a5d9360389cd9ab79a8bab54 (diff)
downloadniri-64288de04ec80078dcfc9308dff4fde0ee933229.tar.gz
niri-64288de04ec80078dcfc9308dff4fde0ee933229.tar.bz2
niri-64288de04ec80078dcfc9308dff4fde0ee933229.zip
rpkg: Use NIRI_BUILD_COMMIT
-rw-r--r--niri.spec.rpkg5
1 files changed, 1 insertions, 4 deletions
diff --git a/niri.spec.rpkg b/niri.spec.rpkg
index 266cc886..bedaafa7 100644
--- a/niri.spec.rpkg
+++ b/niri.spec.rpkg
@@ -101,10 +101,6 @@ Opening a new window never causes existing windows to resize.
%prep
{{{ git_dir_setup_macro }}}
-# Make the version log message look nicer: since we're building not from niri's git repository,
-# the git version macro will show its fallback string.
-sed -i 's/"unknown commit"/"%{version}"/' src/utils/mod.rs
-
%cargo_prep -N
# We're doing an online build.
@@ -114,6 +110,7 @@ sed -i 's/^offline = true$//' .cargo/config.toml
sed -i 's/.*please-remove-me$//' .cargo/config.toml
%build
+export NIRI_BUILD_COMMIT="%{version}"
%cargo_build
%install