git.iko.soy/typeable/nixpkgs
on master help sign in
cairomm: fix on darwin
commitb4b244de2a794d296c78d4717aba796d9a169ecd authorVincent Laporte <Vincent.Laporte@gmail.com> dateWed 24 Aug 2016, 14:22 (10 years ago) parent8512747
1 file changed+6−3
pkgs/development/libraries/cairomm/default.nix+6−3
pkgs/development/libraries/cairomm/default.nix+6−3
@@ -1,4 +1,4 @@
1−{ fetchurl, stdenv, pkgconfig, cairo, xlibsWrapper, fontconfig, freetype, libsigcxx }:
1+{ fetchurl, stdenv, pkgconfig, darwin, cairo, xlibsWrapper, fontconfig, freetype, libsigcxx }:
22let
33 ver_maj = "1.12";
44 ver_min = "0";
@@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
1313
1414 nativeBuildInputs = [ pkgconfig ];
1515 propagatedBuildInputs = [ cairo libsigcxx ];
16− buildInputs = [ fontconfig freetype ];
16+ buildInputs = [ fontconfig freetype ]
17+ ++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
18+ ApplicationServices
19+ ]);
1720
1821 doCheck = true;
1922
@@ -35,6 +38,6 @@ stdenv.mkDerivation rec {
3538 homepage = http://cairographics.org/;
3639
3740 license = with licenses; [ lgpl2Plus mpl10 ];
38− platforms = platforms.linux;
41+ platforms = platforms.unix;
3942 };
4043}