mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
* Oops.
svn path=/nixpkgs/trunk/; revision=4074
This commit is contained in:
parent
e0eb3828bc
commit
6f334ff54f
26
pkgs/development/libraries/cairo/default.nix
Normal file
26
pkgs/development/libraries/cairo/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ postscriptSupport ? true
|
||||
, pdfSupport ? true
|
||||
, pngSupport ? true
|
||||
, stdenv, fetchurl, pkgconfig, x11, fontconfig, freetype
|
||||
, zlib, libpng
|
||||
}:
|
||||
|
||||
assert postscriptSupport -> zlib != null;
|
||||
assert pngSupport -> libpng != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "cairo-1.0.2";
|
||||
src = fetchurl {
|
||||
url = http://cairographics.org/releases/cairo-1.0.2.tar.gz;
|
||||
sha1 = "3a425049499b0b067ed4dc60d94b4d0819c0841b";
|
||||
};
|
||||
buildInputs = [
|
||||
pkgconfig x11 fontconfig freetype
|
||||
(if pngSupport then libpng else null)
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
(if postscriptSupport then zlib else null)
|
||||
];
|
||||
configureFlags =
|
||||
(if pdfSupport then ["--enable-pdf"] else []);
|
||||
}
|
Loading…
Reference in New Issue
Block a user