Merge pull request #1062 from danbst/master

Add `usb` haskell package
This commit is contained in:
Peter Simons 2013-10-13 01:51:05 -07:00
commit d21fcc53ee
3 changed files with 35 additions and 0 deletions

@ -0,0 +1,15 @@
{ cabal, bindingsDSL, libusb }:
cabal.mkDerivation (self: {
pname = "bindings-libusb";
version = "1.4.4.1";
sha256 = "1cip5a0n8svjkzawpx3wi9z7nywmn9bl3k2w559b3awy0wixybrx";
buildDepends = [ bindingsDSL ];
pkgconfigDepends = [ libusb ];
meta = {
homepage = "https://github.com/basvandijk/bindings-libusb";
description = "Low level bindings to libusb";
license = self.stdenv.lib.licenses.bsd3;
platforms = self.ghc.meta.platforms;
};
})

@ -0,0 +1,14 @@
{ cabal, baseUnicodeSymbols, bindingsLibusb, text, vector }:
cabal.mkDerivation (self: {
pname = "usb";
version = "1.2";
sha256 = "1k73avkmpbmg6iq2kmwhg2ifibni5c1yp202afdb6v7w5akvmc0b";
buildDepends = [ baseUnicodeSymbols bindingsLibusb text vector ];
meta = {
homepage = "http://basvandijk.github.com/usb";
description = "Communicate with USB devices";
license = self.stdenv.lib.licenses.bsd3;
platforms = self.ghc.meta.platforms;
};
})

@ -599,6 +599,10 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x
bindingsDSL = callPackage ../development/libraries/haskell/bindings-DSL {};
bindingsLibusb = callPackage ../development/libraries/haskell/bindings-libusb {
libusb = pkgs.libusb1;
};
bindingsPosix = callPackage ../development/libraries/haskell/bindings-posix {};
bitarray = callPackage ../development/libraries/haskell/bitarray {};
@ -2143,6 +2147,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x
urlencoded = callPackage ../development/libraries/haskell/urlencoded {};
usb = callPackage ../development/libraries/haskell/usb {};
utf8Light = callPackage ../development/libraries/haskell/utf8-light {};
utf8String = callPackage ../development/libraries/haskell/utf8-string {};