Merge pull request #56131 from mbrock/master

ipad_charge: enable installation udev rules
This commit is contained in:
Matthew Bauer 2019-06-10 23:24:24 -04:00 committed by GitHub
commit 82dd4e03e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,14 +16,16 @@ stdenv.mkDerivation rec {
postPatch = '' postPatch = ''
substituteInPlace Makefile \ substituteInPlace Makefile \
--replace " -o root -g root" "" \ --replace " -o root -g root" "" \
--replace "/usr" "$out" \
--replace "/etc/udev" "$out/lib/udev"
substituteInPlace *.rules \
--replace "/usr" "$out" --replace "/usr" "$out"
sed "/rules\.d/d" -i Makefile
''; '';
enableParallelBuilding = true; enableParallelBuilding = true;
preInstall = '' preInstall = ''
mkdir -p $out/bin mkdir -p $out/{bin,lib/udev/rules.d}
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {