packages feed

hidapi-0.1.2: hidapi.cabal

name:              hidapi
version:           0.1.2
build-type:        Simple
cabal-version:     >= 1.6
category:          Hardware
author:            Patrick Chilton <chpatrick@gmail.com>, Niklas Hambüchen <mail@nh2.me>
maintainer:        Patrick Chilton <chpatrick@gmail.com>
homepage:          https://github.com/vahokif/haskell-hidapi
bug-reports:       https://github.com/vahokif/haskell-hidapi/issues
synopsis:          Haskell bindings to HIDAPI
description:       Haskell bindings to the HIDAPI library (<http://www.signal11.us/oss/hidapi/>).
license:           MIT
license-file:      LICENSE

extra-source-files:
  cbits/hidapi/hidapi.h
  cbits/linux/hid.c
  cbits/windows/hid.c

source-repository head
  type:      git
  location:  git://github.com/vahokif/haskell-hidapi.git

library
  exposed-modules: System.HIDAPI
  build-depends:
      base < 5
    , bytestring >= 0.9.2.1
    , deepseq-generics >= 0.1

  -- hidapi is not packaged for many distributions, and seems to
  -- expect to be included in the software that uses it, so we do that
  include-dirs:  cbits/hidapi
  includes:      hidapi.h

  if os(windows)
    c-sources:       cbits/windows/hid.c
    extra-libraries: hid setupapi
  else
    c-sources:       cbits/linux/hid.c
    extra-libraries: udev