libinput: don't try to create /etc in build

How libinput tries to create /etc changed in upstream commit
05501cd34f9c ("meson: use install_emptydir to create directory"),
so we have to update our sed expression.

This was missed in when libinput was updated in Nixpkgs due to a Nix
bug[1], which made the sandbox's /etc writeable.

[1]: https://github.com/NixOS/nix/issues/7813

Fixes: bf928e5579 ("libinput: 1.21.0 → 1.22.1")
This commit is contained in:
Alyssa Ross 2023-02-14 10:50:08 +00:00
parent beb954d949
commit 4bcab74b94

View file

@ -113,8 +113,8 @@ stdenv.mkDerivation rec {
test/check-leftover-udev-rules.sh \
test/helper-copy-and-exec-from-tmp.sh
# Don't create an empty /etc directory.
sed -i "/install_subdir('libinput', install_dir : dir_etc)/d" meson.build
# Don't create an empty directory under /etc.
sed -i "/install_emptydir(dir_etc \/ 'libinput')/d" meson.build
'';
passthru = {