2018-06-01 23:01:37 +01:00
{ stdenv
, fetchurl
, meson
, ninja
, pkgconfig
2018-06-20 17:54:42 +01:00
, fixDarwinDylibNames
2018-07-18 00:10:54 +01:00
, python3
2018-06-01 23:01:37 +01:00
} :
2006-07-08 13:19:24 +01:00
2011-03-20 14:54:39 +00:00
stdenv . mkDerivation rec {
2018-06-01 23:01:37 +01:00
name = " ${ pname } - ${ version } " ;
pname = " f r i b i d i " ;
2018-08-09 17:23:22 +01:00
version = " 1 . 0 . 5 " ;
2015-12-23 01:59:47 +00:00
2018-07-18 00:10:54 +01:00
outputs = [ " o u t " " d e v d o c " ] ;
2018-08-09 17:23:22 +01:00
# NOTE: 2018-06-06 v1.0.5: Only URL tarball has "Have pre-generated man pages: true", which works-around upstream usage of some rare ancient `c2man` fossil application.
2018-06-01 23:01:37 +01:00
src = fetchurl {
url = " h t t p s : / / g i t h u b . c o m / ${ pname } / ${ pname } / r e l e a s e s / d o w n l o a d / v ${ version } / ${ name } . t a r . b z 2 " ;
2018-08-09 17:23:22 +01:00
sha256 = " 1 k p 4 b 1 h p x 2 k y 2 0 i x g y 2 x h j 5 i y g f l 7 p s 5 k 9 k g l h 1 z 5 i 7 m h y k g 4 r 3 a " ;
2009-03-10 17:24:15 +00:00
} ;
2018-07-18 00:10:54 +01:00
postPatch = ''
patchShebangs test
'' ;
2018-06-01 23:01:37 +01:00
nativeBuildInputs = [ meson ninja pkgconfig ] ;
2018-06-20 17:54:42 +01:00
buildInputs = stdenv . lib . optional stdenv . isDarwin fixDarwinDylibNames ;
2015-12-23 01:59:47 +00:00
2018-07-18 00:10:54 +01:00
checkInptus = [ python3 ] ;
2016-09-15 09:39:29 +01:00
2014-09-25 16:51:05 +01:00
meta = with stdenv . lib ; {
2017-12-15 23:04:53 +00:00
homepage = https://github.com/fribidi/fribidi ;
2009-03-10 17:24:15 +00:00
description = " G N U i m p l e m e n t a t i o n o f t h e U n i c o d e B i d i r e c t i o n a l A l g o r i t h m ( b i d i ) " ;
2017-12-15 23:04:53 +00:00
license = licenses . lgpl21 ;
2016-08-02 18:50:55 +01:00
platforms = platforms . unix ;
2006-07-08 13:19:24 +01:00
} ;
}