about summary refs log tree commit diff
path: root/pkgs/development/libraries/pixman/default.nix
blob: 23bfbeeb808811887bee7d57fef6ff4781735857 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ fetchurl, stdenv, pkgconfig, perl, withPNG ? true, libpng, glib /*just passthru*/ }:

stdenv.mkDerivation rec {
  name = "pixman-0.30.2";

  src = fetchurl {
    url = "http://cairographics.org/releases/${name}.tar.gz";
    sha256 = "1sgnpx34pj3245a9v8056jddc4cg4xxkqdjvvw6k2hnprhh8k65x";
  };

  nativeBuildInputs = [ pkgconfig perl ];

  buildInputs = stdenv.lib.optional withPNG [ libpng ]; # NOT in closure anyway

  postInstall = glib.flattenInclude;

  meta = {
    homepage = http://pixman.org;
    description = "A low-level library for pixel manipulation";
    license = "MIT";
  };
}