summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2019-02-17 23:16:40 +0000
committerGitHub <noreply@github.com>2019-02-17 23:16:40 +0000
commitfdc9cbb793c8a90bda0e25acd3fa38ef0200a001 (patch)
tree84224c3236b3a6ebc407300845c59b449b307bd3 /pkgs/os-specific
parentcea567c783cce843face39723f490616e7734b62 (diff)
parent4893aeae7a52b1236b9231a72dc520797e420935 (diff)
downloadnixpkgs-fdc9cbb793c8a90bda0e25acd3fa38ef0200a001.tar
nixpkgs-fdc9cbb793c8a90bda0e25acd3fa38ef0200a001.tar.gz
nixpkgs-fdc9cbb793c8a90bda0e25acd3fa38ef0200a001.tar.bz2
nixpkgs-fdc9cbb793c8a90bda0e25acd3fa38ef0200a001.tar.lz
nixpkgs-fdc9cbb793c8a90bda0e25acd3fa38ef0200a001.tar.xz
nixpkgs-fdc9cbb793c8a90bda0e25acd3fa38ef0200a001.tar.zst
nixpkgs-fdc9cbb793c8a90bda0e25acd3fa38ef0200a001.zip
Merge pull request #51312 from geistesk/usbutils-lsusbpy
usbutils: patch hashbang of lsusb.py
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/usbutils/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/usbutils/default.nix b/pkgs/os-specific/linux/usbutils/default.nix
index d58c5a7e67c..85ef8a1a6cc 100644
--- a/pkgs/os-specific/linux/usbutils/default.nix
+++ b/pkgs/os-specific/linux/usbutils/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, substituteAll, autoreconfHook, pkgconfig, libusb1, hwdata }:
+{ stdenv, fetchurl, substituteAll, autoreconfHook, pkgconfig, libusb1, hwdata , python3 }:
 
 stdenv.mkDerivation rec {
   name = "usbutils-010";
@@ -16,7 +16,12 @@ stdenv.mkDerivation rec {
   ];
 
   nativeBuildInputs = [ autoreconfHook pkgconfig ];
-  buildInputs = [ libusb1 ];
+  buildInputs = [ libusb1 python3 ];
+
+  outputs = [ "out" "man" "python" ];
+  postInstall = ''
+    moveToOutput "bin/lsusb.py" "$python"
+  '';
 
   meta = with stdenv.lib; {
     homepage = http://www.linux-usb.org/;