mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 08:39:08 +03:00
Merge pull request #274264 from flokli/udev-rules-allow-bin-sh
nixos/udev: allow /bin/sh in udev rules
This commit is contained in:
commit
f4de47d49e
@ -112,7 +112,8 @@ let
|
||||
echo "OK"
|
||||
|
||||
filesToFixup="$(for i in "$out"/*; do
|
||||
grep -l '\B\(/usr\)\?/s\?bin' "$i" || :
|
||||
# list all files referring to (/usr)/bin paths, but allow references to /bin/sh.
|
||||
grep -P -l '\B(?!\/bin\/sh\b)(\/usr)?\/bin(?:\/.*)?' "$i" || :
|
||||
done)"
|
||||
|
||||
if [ -n "$filesToFixup" ]; then
|
||||
|
@ -35,10 +35,6 @@ stdenv.mkDerivation rec {
|
||||
"UDEVLIBDIR=${placeholder "out"}/lib/udev/"
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
sed -e "s|/bin/sh|${bash}/bin/sh|" -i *.rules
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p "$out/sbin" "$out/lib/udev/rules.d" "$out/share/man/man8"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user