summary refs log tree commit diff
path: root/pkgs/development/libraries/harfbuzz
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2018-08-08 18:35:37 +0000
committerJan Malakhovski <oxij@oxij.org>2018-08-10 12:56:35 +0000
commit9808244aae52ceb7c5a0c0d6e8cb9ca160124d55 (patch)
tree984fd785da1b6a19aa1bfd01710e7ed114cec72c /pkgs/development/libraries/harfbuzz
parent7ea0904347c137b0a02e0a5c8d2bfc282a93ae81 (diff)
downloadnixpkgs-9808244aae52ceb7c5a0c0d6e8cb9ca160124d55.tar
nixpkgs-9808244aae52ceb7c5a0c0d6e8cb9ca160124d55.tar.gz
nixpkgs-9808244aae52ceb7c5a0c0d6e8cb9ca160124d55.tar.bz2
nixpkgs-9808244aae52ceb7c5a0c0d6e8cb9ca160124d55.tar.lz
nixpkgs-9808244aae52ceb7c5a0c0d6e8cb9ca160124d55.tar.xz
nixpkgs-9808244aae52ceb7c5a0c0d6e8cb9ca160124d55.tar.zst
nixpkgs-9808244aae52ceb7c5a0c0d6e8cb9ca160124d55.zip
harfbuzz: fix tests, also cleanup
Diffstat (limited to 'pkgs/development/libraries/harfbuzz')
-rw-r--r--pkgs/development/libraries/harfbuzz/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/libraries/harfbuzz/default.nix b/pkgs/development/libraries/harfbuzz/default.nix
index a0160a8440d..24260234116 100644
--- a/pkgs/development/libraries/harfbuzz/default.nix
+++ b/pkgs/development/libraries/harfbuzz/default.nix
@@ -2,6 +2,7 @@
 , icu, graphite2, harfbuzz # The icu variant uses and propagates the non-icu one.
 , withIcu ? false # recommended by upstream as default, but most don't needed and it's big
 , withGraphite2 ? true # it is small and major distros do include it
+, python
 }:
 
 let
@@ -17,6 +18,11 @@ stdenv.mkDerivation {
     sha256 = "0my6m9aqv4a8fc2pjwqx9pfdfh3a9mqvas4si4psi1b1867zi8y8";
   };
 
+  postPatch = ''
+    patchShebangs src/gen-def.py
+    patchShebangs test
+  '';
+
   outputs = [ "out" "dev" ];
   outputBin = "dev";
 
@@ -29,8 +35,10 @@ stdenv.mkDerivation {
   buildInputs = [ glib freetype cairo ]; # recommended by upstream
   propagatedBuildInputs = []
     ++ optional withGraphite2 graphite2
-    ++ optionals withIcu [ icu harfbuzz ]
-    ;
+    ++ optionals withIcu [ icu harfbuzz ];
+
+  checkInputs = [ python ];
+  doInstallCheck = false; # fails, probably a bug
 
   # Slightly hacky; some pkgs expect them in a single directory.
   postInstall = optionalString withIcu ''