@ -1,30 +1,49 @@
{ stdenv , fetchurl , pkgconfig , libXft , cairo , harfbuzz
, libintl , gobject-introspection , darwin , fribidi , gnome3
, gtk-doc , docbook_xsl , docbook_xml_dtd_43 , makeFontsConf , freefont_ttf
, meson , ninja , glib
} :
with stdenv . lib ;
let
pname = " p a n g o " ;
version = " 1 . 4 2 . 4 " ;
version = " 1 . 4 3 . 0 " ;
in stdenv . mkDerivation rec {
name = " ${ pname } - ${ version } " ;
src = fetchurl {
url = " m i r r o r : / / g n o m e / s o u r c e s / ${ pname } / ${ stdenv . lib . versions . majorMinor version } / ${ name } . t a r . x z " ;
sha256 = " 1 7 b w b 7 d g b n c r f s m c h l i b 0 3 k 9 n 3 x a a l i r b 3 9 g 3 y b 4 3 g g 8 c g 6 p 8 a q x " ;
sha256 = " 1 l n x l d m v 1 a 1 2 d q 5 h 0 d l q 5 j y z l 4 w 7 5 k 7 6 d p 8 c n 3 6 0 x 2 i j l m 9 w 5 h 6 j " ;
} ;
outputs = [ " b i n " " d e v " " o u t " " d e v d o c " ] ;
nativeBuildInputs = [ pkgconfig gobject-introspection gtk-doc docbook_xsl docbook_xml_dtd_43 ] ;
buildInputs = optionals stdenv . isDarwin ( with darwin . apple_sdk . frameworks ; [
nativeBuildInputs = [
meson ninja
pkgconfig gobject-introspection gtk-doc docbook_xsl docbook_xml_dtd_43
] ;
buildInputs = [
harfbuzz fribidi
] ++ optionals stdenv . isDarwin ( with darwin . apple_sdk . frameworks ; [
ApplicationServices
Carbon
CoreGraphics
CoreText
] ) ;
propagatedBuildInputs = [ cairo harfbuzz libXft libintl fribidi ] ;
propagatedBuildInputs = [ cairo glib libXft libintl ] ;
patches = [
( fetchurl {
# Add gobject-2 to .pc file
url = " h t t p s : / / g i t l a b . g n o m e . o r g / G N O M E / p a n g o / c o m m i t / 5 4 6 f 4 c 2 4 2 d 6 f 4 f e 3 1 2 d e 3 b 7 c 9 1 8 a 8 4 8 e 5 1 7 2 e 1 8 d . p a t c h " ;
sha256 = " 0 3 4 n a 3 8 c q 9 8 v k 8 g g g n 3 y f r 6 5 j m v 3 j g i g 8 d 2 5 z g 8 9 w y d r a n d p 1 4 y r " ;
} )
] ;
mesonFlags = [
" - D e n a b l e _ d o c s = t r u e "
] ;
enableParallelBuilding = true ;