i2c-tools: 4.2 -> 4.3
parent
d18c23b355
commit
cdf77fdf20
|
@ -7,19 +7,22 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "i2c-tools";
|
pname = "i2c-tools";
|
||||||
version = "4.2";
|
version = "4.3";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git";
|
url = "https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0vqrbp10klr7ylarr6cy1q7nafiqaky4iq5my5dqy101h93vg4pg";
|
sha256 = "sha256-HlmIocum+HZEKNiS5BUwEIswRfTMUhD1vCPibAuAK0Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ perl ];
|
buildInputs = [ perl ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace eeprom/decode-edid --replace "/usr/sbin/parse-edid" "${read-edid}/bin/parse-edid"
|
substituteInPlace eeprom/decode-edid \
|
||||||
substituteInPlace stub/i2c-stub-from-dump --replace "/sbin/" ""
|
--replace "/usr/sbin/parse-edid" "${read-edid}/bin/parse-edid"
|
||||||
|
|
||||||
|
substituteInPlace stub/i2c-stub-from-dump \
|
||||||
|
--replace "/sbin/" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||||
|
@ -27,7 +30,7 @@ stdenv.mkDerivation rec {
|
||||||
outputs = [ "out" "man" ];
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
rm -rf $out/include # Installs include/linux/i2c-dev.h that conflics with kernel headers
|
rm -rf $out/include/linux/i2c-dev.h # conflics with kernel headers
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in New Issue