8 stdenv.mkDerivation rec {
13 url = "https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/snapshot/i2c-tools-v${version}.tar.gz";
14 sha256 = "sha256-HlmIocum+HZEKNiS5BUwEIswRfTMUhD1vCPibAuAK0Q=";
17 buildInputs = [ perl ];
20 substituteInPlace eeprom/decode-edid \
21 --replace "/usr/sbin/parse-edid" "${read-edid}/bin/parse-edid"
23 substituteInPlace stub/i2c-stub-from-dump \
27 makeFlags = [ "PREFIX=${placeholder "out"}" ];
29 outputs = [ "out" "man" ];
32 rm -rf $out/include/linux/i2c-dev.h # conflics with kernel headers
36 description = "Set of I2C tools for Linux";
37 homepage = "https://i2c.wiki.kernel.org/index.php/I2C_Tools";
38 # library is LGPL 2.1 or later; "most tools" GPL 2 or later
39 license = with licenses; [ lgpl21Plus gpl2Plus ];
40 maintainers = [ maintainers.dezgeg ];
41 platforms = platforms.linux;