Skip to content

Commit

Permalink
overlays: disable RPM unshare plugin
Browse files Browse the repository at this point in the history
We cannot use `unshare` within the Nix sandbox (where we execute `rpm` in via `tdnf`), so disable the plugin through an overlay.
  • Loading branch information
msanft committed Jan 6, 2025
1 parent bf3af79 commit 855705d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions overlays/nixpkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,13 @@ final: prev:
--set SOURCE_DATE_EPOCH 0
'';
});

rpm = prev.rpm.overrideAttrs (prev: {
# Disable the `unshare` RPM plugin, which hinders execution
# of `rpm` within the Nix sandbox due to namespacing restrictions.
# See: https://github.com/rpm-software-management/rpm/commit/fd8eaa52cc2cea87231bbe1a1adee72bef8c65ba
cmakeFlags = prev.cmakeFlags ++ [
"-DHAVE_UNSHARE=OFF"
];
});
}

0 comments on commit 855705d

Please sign in to comment.