2018-06-02 00:01:37 +02:00
{ stdenv
, fetchurl
2018-11-29 12:51:31 +01:00
, fetchpatch
2018-06-02 00:01:37 +02:00
, meson
, ninja
, pkgconfig
2018-06-20 18:54:42 +02:00
, fixDarwinDylibNames
2018-07-18 01:10:54 +02:00
, python3
2018-06-02 00:01:37 +02:00
} :
2006-07-08 14:19:24 +02:00
2011-03-20 15:54:39 +01:00
stdenv . mkDerivation rec {
2018-06-02 00:01:37 +02:00
name = " ${ pname } - ${ version } " ;
pname = " f r i b i d i " ;
2018-08-09 18:23:22 +02:00
version = " 1 . 0 . 5 " ;
2015-12-23 02:59:47 +01:00
2018-07-18 01:10:54 +02:00
outputs = [ " o u t " " d e v d o c " ] ;
2018-08-09 18:23:22 +02: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-02 00:01:37 +02: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 18:23:22 +02: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 18:24:15 +01:00
} ;
2018-11-29 12:51:31 +01: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-18 01:10:54 +02:00
postPatch = ''
patchShebangs test
'' ;
2018-06-02 00:01:37 +02:00
nativeBuildInputs = [ meson ninja pkgconfig ] ;
2018-06-20 18:54:42 +02:00
buildInputs = stdenv . lib . optional stdenv . isDarwin fixDarwinDylibNames ;
2015-12-23 02:59:47 +01:00
2018-07-18 01:10:54 +02:00
checkInptus = [ python3 ] ;
2016-09-15 10:39:29 +02:00
2014-09-25 17:51:05 +02:00
meta = with stdenv . lib ; {
2017-12-16 00:04:53 +01:00
homepage = https://github.com/fribidi/fribidi ;
2009-03-10 18:24:15 +01: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-16 00:04:53 +01:00
license = licenses . lgpl21 ;
2016-08-02 19:50:55 +02:00
platforms = platforms . unix ;
2006-07-08 14:19:24 +02:00
} ;
}