uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
44
pkgs/os-specific/linux/i2c-tools/default.nix
Normal file
44
pkgs/os-specific/linux/i2c-tools/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchgit
|
||||
, perl
|
||||
, read-edid
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "i2c-tools";
|
||||
version = "4.3";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git";
|
||||
rev = "v${version}";
|
||||
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/" ""
|
||||
'';
|
||||
|
||||
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
postInstall = ''
|
||||
rm -rf $out/include/linux/i2c-dev.h # conflics with kernel headers
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Set of I2C tools for Linux";
|
||||
homepage = "https://i2c.wiki.kernel.org/index.php/I2C_Tools";
|
||||
# library is LGPL 2.1 or later; "most tools" GPL 2 or later
|
||||
license = with licenses; [ lgpl21Plus gpl2Plus ];
|
||||
maintainers = [ maintainers.dezgeg ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue