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
8
stdenv.mkDerivation rec {
9
pname = "i2c-tools";
10
-
version = "4.2";
11
12
src = fetchgit {
13
url = "https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git";
14
rev = "v${version}";
15
-
sha256 = "0vqrbp10klr7ylarr6cy1q7nafiqaky4iq5my5dqy101h93vg4pg";
16
};
17
18
buildInputs = [ perl ];
19
20
postPatch = ''
21
-
substituteInPlace eeprom/decode-edid --replace "/usr/sbin/parse-edid" "${read-edid}/bin/parse-edid"
22
-
substituteInPlace stub/i2c-stub-from-dump --replace "/sbin/" ""
0
0
0
23
'';
24
25
makeFlags = [ "PREFIX=${placeholder "out"}" ];
···
27
outputs = [ "out" "man" ];
28
29
postInstall = ''
30
-
rm -rf $out/include # Installs include/linux/i2c-dev.h that conflics with kernel headers
31
'';
32
33
meta = with lib; {
···
7
8
stdenv.mkDerivation rec {
9
pname = "i2c-tools";
10
+
version = "4.3";
11
12
src = fetchgit {
13
url = "https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git";
14
rev = "v${version}";
15
+
sha256 = "sha256-HlmIocum+HZEKNiS5BUwEIswRfTMUhD1vCPibAuAK0Q=";
16
};
17
18
buildInputs = [ perl ];
19
20
postPatch = ''
21
+
substituteInPlace eeprom/decode-edid \
22
+
--replace "/usr/sbin/parse-edid" "${read-edid}/bin/parse-edid"
23
+
24
+
substituteInPlace stub/i2c-stub-from-dump \
25
+
--replace "/sbin/" ""
26
'';
27
28
makeFlags = [ "PREFIX=${placeholder "out"}" ];
···
30
outputs = [ "out" "man" ];
31
32
postInstall = ''
33
+
rm -rf $out/include/linux/i2c-dev.h # conflics with kernel headers
34
'';
35
36
meta = with lib; {