about summary refs log tree commit diff
path: root/pkgs/tools/system/pciutils/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/system/pciutils/builder.sh')
-rw-r--r--pkgs/tools/system/pciutils/builder.sh13
1 files changed, 13 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