1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/misc/usb-modeswitch/default.nix
Ryan Mulligan 27ef8fbaa5 usb-modeswitch: 2.5.0 -> 2.5.2
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/g9jg6pc3vwnpfgbypnzv2v5gp4r7gnnn-usb-modeswitch-2.5.2/bin/usb_modeswitch -h` got 0 exit code
- ran `/nix/store/g9jg6pc3vwnpfgbypnzv2v5gp4r7gnnn-usb-modeswitch-2.5.2/bin/usb_modeswitch --help` got 0 exit code
- ran `/nix/store/g9jg6pc3vwnpfgbypnzv2v5gp4r7gnnn-usb-modeswitch-2.5.2/bin/usb_modeswitch --version` and found version 2.5.2
- ran `/nix/store/g9jg6pc3vwnpfgbypnzv2v5gp4r7gnnn-usb-modeswitch-2.5.2/bin/usb_modeswitch -h` and found version 2.5.2
- ran `/nix/store/g9jg6pc3vwnpfgbypnzv2v5gp4r7gnnn-usb-modeswitch-2.5.2/bin/usb_modeswitch --help` and found version 2.5.2
- found 2.5.2 with grep in /nix/store/g9jg6pc3vwnpfgbypnzv2v5gp4r7gnnn-usb-modeswitch-2.5.2
- found 2.5.2 in filename of file in /nix/store/g9jg6pc3vwnpfgbypnzv2v5gp4r7gnnn-usb-modeswitch-2.5.2

cc "@marcweber @peterhoeg"
2018-02-27 18:35:02 -08:00

33 lines
843 B
Nix

{ stdenv, fetchurl, pkgconfig, libusb1 }:
stdenv.mkDerivation rec {
name = "usb-modeswitch-${version}";
version = "2.5.2";
src = fetchurl {
url = "http://www.draisberghof.de/usb_modeswitch/${name}.tar.bz2";
sha256 = "19ifi80g9ns5dmspchjvfj4ykxssq9yrci8m227dgb3yr04srzxb";
};
makeFlags = [
"DESTDIR=$(out)"
"PREFIX=$(out)"
];
# make clean: we always build from source. It should be necessary on x86_64 only
preConfigure = ''
find -type f | xargs sed 's@/bin/rm@rm@g' -i
make clean
'';
buildInputs = [ libusb1 ];
nativeBuildInputs = [ pkgconfig ];
meta = with stdenv.lib; {
description = "A mode switching tool for controlling 'multi-mode' USB devices";
license = licenses.gpl2;
maintainers = with maintainers; [ marcweber peterhoeg ];
platforms = platforms.linux;
};
}