nixpkgs/pkgs/development/tools/misc/usb-modeswitch/default.nix
Bjørn Forsman bd01fad0ed Captialize meta.description of all packages
In line with the Nixpkgs manual.

A mechanical change, done with this command:

  find pkgs -name "*.nix" | \
      while read f; do \
          sed -e 's/description\s*=\s*"\([a-z]\)/description = "\u\1/' -i "$f"; \
      done

I manually skipped some:

* Descriptions starting with an abbreviation, a user name or package name
* Frequently generated expressions (haskell-packages.nix)
2016-06-20 13:55:52 +02:00

31 lines
848 B
Nix

{ stdenv, fetchurl, pkgconfig, libusb1 }:
let
version = "2.3.0";
in
stdenv.mkDerivation rec {
name = "usb-modeswitch-${version}";
src = fetchurl {
url = "http://www.draisberghof.de/usb_modeswitch/${name}.tar.bz2";
sha256 = "1jqih1g0y78w03rchpw7fjvzwjfakak61qjp7hbr1m5nnsh2dn9p";
};
# 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
mkdir -p $out/{etc,lib/udev,share/man/man1}
makeFlags="DESTDIR=$out PREFIX=$out"
'';
buildInputs = [ pkgconfig libusb1 ];
meta = {
description = "A mode switching tool for controlling 'multi-mode' USB devices";
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = stdenv.lib.platforms.linux;
};
}