add the pciutils
svn path=/nixpkgs/trunk/; revision=4415
This commit is contained in:
parent
b9939fc37a
commit
4cbc035e47
12
pkgs/development/libraries/pciutils/builder.sh
Normal file
12
pkgs/development/libraries/pciutils/builder.sh
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
source $stdenv/setup
|
||||||
|
|
||||||
|
postInstall() {
|
||||||
|
ensureDir $out/lib
|
||||||
|
ensureDir $out/include
|
||||||
|
cp lib/*.h $out/include
|
||||||
|
cp lib/libpci.a $out/lib
|
||||||
|
}
|
||||||
|
|
||||||
|
postInstall=postInstall
|
||||||
|
|
||||||
|
genericBuild
|
11
pkgs/development/libraries/pciutils/default.nix
Normal file
11
pkgs/development/libraries/pciutils/default.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{stdenv, fetchurl}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "pciutils-2.2.1";
|
||||||
|
builder = ./builder.sh;
|
||||||
|
src = fetchurl {
|
||||||
|
url = ftp://ftp.kernel.org/pub/software/utils/pciutils/pciutils-2.2.1.tar.bz2;
|
||||||
|
md5 = "483a08dc864ec42497ad95310bb1a8ee";
|
||||||
|
};
|
||||||
|
patches = [./pciutils-path.patch];
|
||||||
|
}
|
12
pkgs/development/libraries/pciutils/pciutils-path.patch
Normal file
12
pkgs/development/libraries/pciutils/pciutils-path.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -ruN pciutils-2.2.1/Makefile pciutils-2.2.1.new/Makefile
|
||||||
|
--- pciutils-2.2.1/Makefile 2005-11-26 14:00:57.000000000 +0100
|
||||||
|
+++ pciutils-2.2.1.new/Makefile 2005-12-23 15:24:14.000000000 +0100
|
||||||
|
@@ -7,7 +7,7 @@
|
||||||
|
VERSION=2.2.1
|
||||||
|
DATE=2005-11-26
|
||||||
|
|
||||||
|
-PREFIX=/usr/local
|
||||||
|
+PREFIX=$(out)
|
||||||
|
SBINDIR=$(PREFIX)/sbin
|
||||||
|
SHAREDIR=$(PREFIX)/share
|
||||||
|
IDSDIR=$(SHAREDIR)
|
Loading…
x
Reference in New Issue
Block a user