Skip to content

Commit

Permalink
libinput: don't try to create /etc in build
Browse files Browse the repository at this point in the history
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]: NixOS/nix#7813

Fixes: bf928e5 ("libinput: 1.21.0 → 1.22.1")
  • Loading branch information
alyssais committed Feb 14, 2023
1 parent 200610b commit 3c318b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/libraries/libinput/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 3c318b7

Please sign in to comment.