2018-06-01 22:01:37 +00:00
{ stdenv
, fetchurl
2018-11-29 11:51:31 +00:00
, fetchpatch
2018-06-01 22:01:37 +00:00
, meson
, ninja
, pkgconfig
2018-06-20 16:54:42 +00:00
, fixDarwinDylibNames
2018-07-17 23:10:54 +00:00
, python3
2018-06-01 22:01:37 +00:00
} :
2006-07-08 12:19:24 +00:00
2011-03-20 14:54:39 +00:00
stdenv . mkDerivation rec {
2018-06-01 22:01:37 +00:00
pname = " f r i b i d i " ;
2018-08-09 16:23:22 +00:00
version = " 1 . 0 . 5 " ;
2015-12-23 01:59:47 +00:00
2018-07-17 23:10:54 +00:00
outputs = [ " o u t " " d e v d o c " ] ;
2018-08-09 16:23:22 +00: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 22:01:37 +00:00
src = fetchurl {
2019-08-03 06:27:50 +00:00
url = " h t t p s : / / g i t h u b . c o m / f r i b i d i / f r i b i d i / r e l e a s e s / d o w n l o a d / v ${ version } / ${ pname } - ${ version } . t a r . b z 2 " ;
2018-08-09 16:23:22 +00: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-11-29 11:51:31 +00:00
patches = [
( fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / f r i b i d i / f r i b i d i / p u l l / 8 8 . p a t c h " ;
sha256 = " 1 n 4 l 6 3 3 3 v h b x f c k w g 1 0 1 f l m v q 6 b b y g g 6 6 f j p 6 9 d d c j q a q b 6 g h 9 k 9 " ;
} )
] ;
2018-07-17 23:10:54 +00:00
postPatch = ''
patchShebangs test
'' ;
2019-08-03 06:27:50 +00:00
nativeBuildInputs = [ meson ninja pkgconfig ]
++ stdenv . lib . optional stdenv . isDarwin fixDarwinDylibNames ;
2015-12-23 01:59:47 +00:00
2019-08-03 06:27:50 +00:00
doCheck = true ;
checkInputs = [ python3 ] ;
2016-09-15 08:39:29 +00:00
2014-09-25 15:51:05 +00: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 17:50:55 +00:00
platforms = platforms . unix ;
2006-07-08 12:19:24 +00:00
} ;
}