about summary refs log tree commit diff
path: root/pkgs/tools/misc/brltty
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2017-12-25 06:46:30 +0100
committerJan Tojnar <jtojnar@gmail.com>2018-01-02 05:06:35 +0100
commitf8a500f722baf0fe9ef66f0b2f3d796cbbf5d51e (patch)
treed8c3c2f4d3314db59c2082a051ca581e63855ab3 /pkgs/tools/misc/brltty
parent73050d3b207a697b30c0c2d38fb0a0ae1b54b28e (diff)
downloadnixlib-f8a500f722baf0fe9ef66f0b2f3d796cbbf5d51e.tar
nixlib-f8a500f722baf0fe9ef66f0b2f3d796cbbf5d51e.tar.gz
nixlib-f8a500f722baf0fe9ef66f0b2f3d796cbbf5d51e.tar.bz2
nixlib-f8a500f722baf0fe9ef66f0b2f3d796cbbf5d51e.tar.lz
nixlib-f8a500f722baf0fe9ef66f0b2f3d796cbbf5d51e.tar.xz
nixlib-f8a500f722baf0fe9ef66f0b2f3d796cbbf5d51e.tar.zst
nixlib-f8a500f722baf0fe9ef66f0b2f3d796cbbf5d51e.zip
brltty: build python bindings
Diffstat (limited to 'pkgs/tools/misc/brltty')
-rw-r--r--pkgs/tools/misc/brltty/default.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/tools/misc/brltty/default.nix b/pkgs/tools/misc/brltty/default.nix
index ea1ac6d116b1..8dbcd08fba6e 100644
--- a/pkgs/tools/misc/brltty/default.nix
+++ b/pkgs/tools/misc/brltty/default.nix
@@ -1,35 +1,37 @@
-{ stdenv, fetchurl, pkgconfig, alsaSupport, alsaLib ? null, bluez, systemdSupport, systemd ? null }:
+{ stdenv, fetchurl, pkgconfig, python3, alsaSupport, alsaLib ? null, bluez, systemdSupport, systemd ? null }:
 
 assert alsaSupport -> alsaLib != null;
 assert systemdSupport -> systemd != null;
 
 stdenv.mkDerivation rec {
   name = "brltty-5.5";
-  
+
   src = fetchurl {
     url = "http://brltty.com/archive/${name}.tar.gz";
     sha256 = "0slrqanwj9cm7ql0rpb296xq676zrc1sjyr13lh5lygp4b8qfpci";
   };
-  
-  nativeBuildInputs = [ pkgconfig ];
+
+  nativeBuildInputs = [ pkgconfig python3.pkgs.cython ];
   buildInputs = [ bluez ]
     ++ stdenv.lib.optional alsaSupport alsaLib
     ++ stdenv.lib.optional systemdSupport systemd;
-  
+
   meta = {
     description = "Access software for a blind person using a braille display";
     longDescription = ''
       BRLTTY is a background process (daemon) which provides access to the Linux/Unix
       console (when in text mode) for a blind person using a refreshable braille display.
       It drives the braille display, and provides complete screen review functionality.
-      Some speech capability has also been incorporated. 
+      Some speech capability has also been incorporated.
     '';
     homepage = http://www.brltty.com/;
     license = stdenv.lib.licenses.gpl2;
     maintainers = [ stdenv.lib.maintainers.bramd ];
     platforms = stdenv.lib.platforms.all;
   };
-  
+
+  makeFlags = [ "PYTHON_PREFIX=$(out)" ];
+
   preConfigurePhases = [ "preConfigure" ];
 
   preConfigure = ''