Merge pull request #31591 from matthewbauer/libtiger-fix

libtiger: fix on Darwin
This commit is contained in:
Daiderd Jordan 2017-11-13 20:28:08 +01:00 committed by GitHub
commit 1165c03fbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libkate, pango, cairo, pkgconfig }: { stdenv, lib, fetchurl, libkate, pango, cairo, pkgconfig, darwin }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libtiger-0.3.4"; name = "libtiger-0.3.4";
@ -9,11 +9,13 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libkate pango cairo ]; buildInputs = [ libkate pango cairo ]
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.ApplicationServices;
meta = { meta = {
homepage = https://code.google.com/archive/p/libtiger/; homepage = https://code.google.com/archive/p/libtiger/;
description = "A rendering library for Kate streams using Pango and Cairo"; description = "A rendering library for Kate streams using Pango and Cairo";
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
maintainers = with lib; [ matthewbauer ];
}; };
} }