gobi_loader: patch udev rules to gobi_loader binary and update firmware path

This commit is contained in:
Florian Klink 2019-11-24 18:13:21 +01:00
parent c97f57ef96
commit c7bf1e2a01

View File

@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "0jkmpqkiddpxrzl2s9s3kh64ha48m00nn53f82m1rphw8maw5gbq";
};
postPatch = ''
substituteInPlace 60-gobi.rules --replace "gobi_loader" "${placeholder "out"}/lib/udev/gobi_loader"
substituteInPlace 60-gobi.rules --replace "/lib/firmware" "/run/current-system/firmware"
'';
makeFlags = "prefix=${placeholder "out"}";
meta = with stdenv.lib; {