nixpkgs/pkgs/development/libraries/silgraphite/graphite2.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

24 lines
642 B
Nix

{ stdenv, fetchurl, pkgconfig, freetype, cmake }:
stdenv.mkDerivation rec {
version = "1.3.6";
name = "graphite2-${version}";
src = fetchurl {
url = "https://github.com/silnrsi/graphite/releases/download/"
+ "${version}/graphite-${version}.tgz";
sha256 = "0xdg6bc02bl8yz39l5i2skczfg17q4lif0qqan0dhvk0mibpcpj7";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ freetype cmake ];
patches = stdenv.lib.optionals stdenv.isDarwin [ ./macosx.patch ];
meta = {
description = "An advanced font engine";
maintainers = [ stdenv.lib.maintainers.raskin ];
platforms = stdenv.lib.platforms.unix;
};
}