about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/usb-modeswitch/default.nix
blob: c93756ffa25f2726f3c7ca19ff666544f9d24e1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
args: with args;

stdenv.mkDerivation {

  name = "usb-modeswitch-1.1.1";

  src = /tmp/marc/usb-modeswitch-1.1.1.tar.bz2;
    /*
    fetchurl {
    url = 
    sha256 = "0f7da588yvb1d3l3gk5m0hrqlhg8m4gw93aip3dwkmnawz9r0qca";
  };
  */

  # 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
    ensureDir $out/{etc,lib/udev,share/man/man1}
    makeFlags="DESTDIR=$out PREFIX=$out"
  '';

  buildInputs = [libusb];

  meta = {
    description = "...";
    homepage = "TODO";
    license = "GPLv2";
    maintainers = [stdenv.lib.maintainers.marcweber];
    platforms = stdenv.lib.platforms.linux;
  };
}