about summary refs log tree commit diff
path: root/pkgs/tools/system/pciutils
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/system/pciutils')
-rw-r--r--pkgs/tools/system/pciutils/builder.sh13
-rw-r--r--pkgs/tools/system/pciutils/default.nix11
2 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/system/pciutils/builder.sh b/pkgs/tools/system/pciutils/builder.sh
new file mode 100644
index 000000000000..d61eaf5dec32
--- /dev/null
+++ b/pkgs/tools/system/pciutils/builder.sh
@@ -0,0 +1,13 @@
+source $stdenv/setup
+
+postInstall=postInstall
+postInstall() {
+  ensureDir $out/lib
+  ensureDir $out/include/pci
+  cp lib/*.h $out/include/pci
+  cp lib/libpci.a $out/lib
+}
+
+makeFlags="PREFIX=$out"
+
+genericBuild
diff --git a/pkgs/tools/system/pciutils/default.nix b/pkgs/tools/system/pciutils/default.nix
new file mode 100644
index 000000000000..200d7a16e4fa
--- /dev/null
+++ b/pkgs/tools/system/pciutils/default.nix
@@ -0,0 +1,11 @@
+{stdenv, fetchurl, zlib}:
+
+stdenv.mkDerivation {
+  name = "pciutils-2.2.4";
+  builder = ./builder.sh;
+  src = fetchurl {
+    url = ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/pciutils-2.2.4.tar.gz;
+    sha256 = "17vaa1rij0q2xj8z8b8c6qq7a4g65gj419dsz067zlf6i3v0gz32";
+  };
+  buildInputs = [zlib];
+}