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
52
pkgs/tools/system/pciutils/default.nix
Normal file
52
pkgs/tools/system/pciutils/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib, stdenv, fetchurl, pkg-config, zlib, kmod, which
|
||||
, hwdata
|
||||
, static ? stdenv.hostPlatform.isStatic
|
||||
, IOKit
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pciutils";
|
||||
version = "3.7.0"; # with release-date database
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/software/utils/pciutils/pciutils-${version}.tar.xz";
|
||||
sha256 = "1ss0rnfsx8gvqjxaji4mvbhf9xyih4cadmgadbwwv8mnx1xvjh4x";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ zlib kmod which ] ++
|
||||
lib.optional stdenv.hostPlatform.isDarwin IOKit;
|
||||
|
||||
preConfigure = if stdenv.cc.isGNU then null else ''
|
||||
substituteInPlace Makefile --replace 'CC=$(CROSS_COMPILE)gcc' ""
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"SHARED=${if static then "no" else "yes"}"
|
||||
"PREFIX=\${out}"
|
||||
"STRIP="
|
||||
"HOST=${stdenv.hostPlatform.system}"
|
||||
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
||||
"DNS=yes"
|
||||
];
|
||||
|
||||
installTargets = [ "install" "install-lib" ];
|
||||
|
||||
postInstall = ''
|
||||
# Remove update-pciids as it won't work on nixos
|
||||
rm $out/sbin/update-pciids $out/man/man8/update-pciids.8
|
||||
|
||||
# use database from hwdata instead
|
||||
# (we don't create a symbolic link because we do not want to pull in the
|
||||
# full closure of hwdata)
|
||||
cp --reflink=auto ${hwdata}/share/hwdata/pci.ids $out/share/pci.ids
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://mj.ucw.cz/pciutils.html";
|
||||
description = "A collection of programs for inspecting and manipulating configuration of PCI devices";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.vcunat ]; # not really, but someone should watch it
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue