tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
i2c-tools: 4.2 -> 4.3
Peter Hoeg
4 years ago
cdf77fdf
d18c23b3
+8
-5
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
i2c-tools
default.nix
+8
-5
pkgs/os-specific/linux/i2c-tools/default.nix
···
7
7
8
8
stdenv.mkDerivation rec {
9
9
pname = "i2c-tools";
10
10
-
version = "4.2";
10
10
+
version = "4.3";
11
11
12
12
src = fetchgit {
13
13
url = "https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git";
14
14
rev = "v${version}";
15
15
-
sha256 = "0vqrbp10klr7ylarr6cy1q7nafiqaky4iq5my5dqy101h93vg4pg";
15
15
+
sha256 = "sha256-HlmIocum+HZEKNiS5BUwEIswRfTMUhD1vCPibAuAK0Q=";
16
16
};
17
17
18
18
buildInputs = [ perl ];
19
19
20
20
postPatch = ''
21
21
-
substituteInPlace eeprom/decode-edid --replace "/usr/sbin/parse-edid" "${read-edid}/bin/parse-edid"
22
22
-
substituteInPlace stub/i2c-stub-from-dump --replace "/sbin/" ""
21
21
+
substituteInPlace eeprom/decode-edid \
22
22
+
--replace "/usr/sbin/parse-edid" "${read-edid}/bin/parse-edid"
23
23
+
24
24
+
substituteInPlace stub/i2c-stub-from-dump \
25
25
+
--replace "/sbin/" ""
23
26
'';
24
27
25
28
makeFlags = [ "PREFIX=${placeholder "out"}" ];
···
27
30
outputs = [ "out" "man" ];
28
31
29
32
postInstall = ''
30
30
-
rm -rf $out/include # Installs include/linux/i2c-dev.h that conflics with kernel headers
33
33
+
rm -rf $out/include/linux/i2c-dev.h # conflics with kernel headers
31
34
'';
32
35
33
36
meta = with lib; {