summary refs log tree commit diff
path: root/pkgs/os-specific/linux/i2c-tools
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2021-10-19 14:02:42 +0800
committerPeter Hoeg <peter@hoeg.com>2021-10-21 09:09:55 +0800
commitcdf77fdf20c90eacca58b7c8f08cb51cae041d2d (patch)
tree354face70919f743999c8564abefe9aae8818dda /pkgs/os-specific/linux/i2c-tools
parentd18c23b3551035023a50c5d1afe35a3e2cedc3e6 (diff)
downloadnixpkgs-cdf77fdf20c90eacca58b7c8f08cb51cae041d2d.tar
nixpkgs-cdf77fdf20c90eacca58b7c8f08cb51cae041d2d.tar.gz
nixpkgs-cdf77fdf20c90eacca58b7c8f08cb51cae041d2d.tar.bz2
nixpkgs-cdf77fdf20c90eacca58b7c8f08cb51cae041d2d.tar.lz
nixpkgs-cdf77fdf20c90eacca58b7c8f08cb51cae041d2d.tar.xz
nixpkgs-cdf77fdf20c90eacca58b7c8f08cb51cae041d2d.tar.zst
nixpkgs-cdf77fdf20c90eacca58b7c8f08cb51cae041d2d.zip
i2c-tools: 4.2 -> 4.3
Diffstat (limited to 'pkgs/os-specific/linux/i2c-tools')
-rw-r--r--pkgs/os-specific/linux/i2c-tools/default.nix13
1 files 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; {