mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 05:57:28 +00:00
i2c-toools: touchups, NFCI. (reviewer suggestions, thanks!)
This commit is contained in:
parent
8b4d458ccd
commit
d60806b90b
@ -11,13 +11,14 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ perl ];
|
buildInputs = [ perl ];
|
||||||
|
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
substituteInPlace eeprom/decode-edid --replace "/usr/sbin/parse-edid" "${read-edid}/bin/parse-edid"
|
substituteInPlace eeprom/decode-edid --replace "/usr/sbin/parse-edid" "${read-edid}/bin/parse-edid"
|
||||||
substituteInPlace stub/i2c-stub-from-dump --replace "/sbin/" ""
|
substituteInPlace stub/i2c-stub-from-dump --replace "/sbin/" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||||
make install PREFIX=$out
|
|
||||||
|
postInstall = ''
|
||||||
rm -rf $out/include # Installs include/linux/i2c-dev.h that conflics with kernel headers
|
rm -rf $out/include # Installs include/linux/i2c-dev.h that conflics with kernel headers
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user