From cdf77fdf20c90eacca58b7c8f08cb51cae041d2d Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Tue, 19 Oct 2021 14:02:42 +0800 Subject: [PATCH] i2c-tools: 4.2 -> 4.3 --- pkgs/os-specific/linux/i2c-tools/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/os-specific/linux/i2c-tools/default.nix b/pkgs/os-specific/linux/i2c-tools/default.nix index 5c05ca6082e..556bc2d8978 100644 --- a/pkgs/os-specific/linux/i2c-tools/default.nix +++ b/pkgs/os-specific/linux/i2c-tools/default.nix @@ -7,19 +7,22 @@ stdenv.mkDerivation rec { pname = "i2c-tools"; - version = "4.2"; + version = "4.3"; src = fetchgit { url = "https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git"; rev = "v${version}"; - sha256 = "0vqrbp10klr7ylarr6cy1q7nafiqaky4iq5my5dqy101h93vg4pg"; + sha256 = "sha256-HlmIocum+HZEKNiS5BUwEIswRfTMUhD1vCPibAuAK0Q="; }; buildInputs = [ perl ]; postPatch = '' - substituteInPlace eeprom/decode-edid --replace "/usr/sbin/parse-edid" "${read-edid}/bin/parse-edid" - substituteInPlace stub/i2c-stub-from-dump --replace "/sbin/" "" + substituteInPlace eeprom/decode-edid \ + --replace "/usr/sbin/parse-edid" "${read-edid}/bin/parse-edid" + + substituteInPlace stub/i2c-stub-from-dump \ + --replace "/sbin/" "" ''; makeFlags = [ "PREFIX=${placeholder "out"}" ]; @@ -27,7 +30,7 @@ stdenv.mkDerivation rec { outputs = [ "out" "man" ]; 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; {