From 4bcab74b94c14e608d517dd626a8fbe6c29b9064 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 14 Feb 2023 10:50:08 +0000 Subject: [PATCH] libinput: don't try to create /etc in build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: bf928e55794 ("libinput: 1.21.0 → 1.22.1") --- pkgs/development/libraries/libinput/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libinput/default.nix b/pkgs/development/libraries/libinput/default.nix index dfd5ce1a095..268ddd37081 100644 --- a/pkgs/development/libraries/libinput/default.nix +++ b/pkgs/development/libraries/libinput/default.nix @@ -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 = {