2010-07-28 11:55:54 +00:00
|
|
|
{ stdenv, fetchurl, libusb }:
|
2010-04-16 15:56:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-04-19 12:27:18 +00:00
|
|
|
name = "usb-modeswitch-1.1.2";
|
2010-04-16 15:56:28 +00:00
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
src =fetchurl {
|
2010-04-19 12:27:18 +00:00
|
|
|
url = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.1.2.tar.bz2";
|
|
|
|
sha256 = "1wzhd0r49nh5y43qrvsi3c7a29206zwd6v8xlpb8dqm40xg3j9nz";
|
2010-04-16 15:56:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/{etc,lib/udev,share/man/man1}
|
2010-04-16 15:56:28 +00:00
|
|
|
makeFlags="DESTDIR=$out PREFIX=$out"
|
|
|
|
'';
|
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
buildInputs = [ libusb ];
|
2010-04-16 15:56:28 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = "GPLv2";
|
2010-07-28 11:55:54 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
2010-04-16 15:56:28 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|