From de5c13a0f164206d8f1eadff9ca14545f302444a Mon Sep 17 00:00:00 2001 From: Ilka Schulz Date: Fri, 5 Jun 2026 18:49:28 +0200 Subject: [PATCH] fix: define %{_bindir} for rpmbuild, because Nix would otherwise overwrite it --- pkgs/package-rpm.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/package-rpm.nix b/pkgs/package-rpm.nix index 4a4b5a19..ee840fb1 100644 --- a/pkgs/package-rpm.nix +++ b/pkgs/package-rpm.nix @@ -61,10 +61,15 @@ runCommand "rosenpass-${version}.rpm" { } '' mkdir -p /build/tmp ls -R rpmbuild + # rpmbuild requires these defines, because Nix would otherwise overwrite them, especially %{_bindir} ${rpm}/bin/rpmbuild \ -bb \ --dbpath=$HOME \ --define "_tmppath /build/tmp" \ + --define "_prefix /usr" \ + --define "_exec_prefix %{_prefix}" \ + --define "_bindir %{_exec_prefix}/bin" \ + --define "_sysconfdir /etc" \ rpmbuild/SPECS/rosenpass.spec cp rpmbuild/RPMS/${arch}/rosenpass*.rpm $out