From 223b285776bb0dd1bcaa6199aead775029dbb35d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 18 Oct 2012 12:13:07 +0200 Subject: [PATCH] cairo: clear all occurrences of `-ldl' on FreeBSD --- pkgs/development/libraries/cairo/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/cairo/default.nix b/pkgs/development/libraries/cairo/default.nix index 4753a39ed76b..b24cc668bf13 100644 --- a/pkgs/development/libraries/cairo/default.nix +++ b/pkgs/development/libraries/cairo/default.nix @@ -47,8 +47,11 @@ stdenv.mkDerivation rec { # On FreeBSD, `-ldl' doesn't exist. + (stdenv.lib.optionalString stdenv.isFreeBSD - '' cat util/cairo-fdr/Makefile.in | sed -es/-ldl//g > t - mv t util/cairo-fdr/Makefile.in + '' for i in "util/"*"/Makefile.in" boilerplate/Makefile.in + do + cat "$i" | sed -es/-ldl//g > t + mv t "$i" + done ''); enableParallelBuilding = true;