From 8ee58a2aa3b5e621649ea4b5c77fca66ebeb7c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20F=C3=BCnfst=C3=BCck?= Date: Wed, 26 Aug 2015 17:34:02 +0200 Subject: [PATCH] haskell: fix freenect and hcwiid --- .../haskell-modules/configuration-common.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 10e665b70a2e..2705a3011247 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -992,4 +992,21 @@ self: super: { "--extra-include-dirs=${pkgs.smpeg}/include/smpeg" ]; }); + + # https://github.com/chrisdone/freenect/pull/11 + freenect = overrideCabal super.freenect (drv: { + libraryPkgconfigDepends = [ pkgs.freenect ]; + prePatch = '' echo " Pkgconfig-Depends: libfreenect" >> freenect.cabal ''; + }); + + # https://github.com/ivanperez-keera/hcwiid/pull/4 + hcwiid = overrideCabal super.hcwiid (drv: { + configureFlags = (drv.configureFlags or []) ++ [ + "--extra-lib-dirs=${pkgs.bluez}/lib" + "--extra-lib-dirs=${pkgs.cwiid}/lib" + "--extra-include-dirs=${pkgs.cwiid}/include" + "--extra-include-dirs=${pkgs.bluez}/include" + ]; + prePatch = '' sed -i -e "/Extra-Lib-Dirs/d" -e "/Include-Dirs/d" "hcwiid.cabal" ''; + }); }