at v192 28 lines 896 B view raw
1{ stdenv, fetchurl, pkgconfig, zlib, kmod, which }: 2 3stdenv.mkDerivation rec { 4 name = "pciutils-3.3.1"; # with database from 2015-04 5 6 src = fetchurl { 7 url = "mirror://kernel/software/utils/pciutils/${name}.tar.xz"; 8 sha256 = "1ag3skny1bamqil46dlppw8j1fp08spqa60fjygbxkg4fzdknjji"; 9 }; 10 11 buildInputs = [ pkgconfig zlib kmod which ]; 12 13 makeFlags = "SHARED=yes PREFIX=\${out}"; 14 15 installTargets = "install install-lib"; 16 17 # Get rid of update-pciids as it won't work. 18 postInstall = "rm $out/sbin/update-pciids $out/man/man8/update-pciids.8"; 19 20 meta = with stdenv.lib; { 21 homepage = http://mj.ucw.cz/pciutils.html; 22 description = "A collection of programs for inspecting and manipulating configuration of PCI devices"; 23 license = licenses.gpl2Plus; 24 platforms = platforms.unix; 25 maintainers = [ maintainers.vcunat ]; # not really, but someone should watch it 26 }; 27} 28