From 853d612c3f392c0e58b31a6a4ff855369abe305e Mon Sep 17 00:00:00 2001 From: Ambroz Bizjak Date: Wed, 16 Mar 2016 12:37:35 +0100 Subject: [PATCH] opencsg: Fix build related to missing libX11 linking the example. --- pkgs/development/libraries/opencsg/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/opencsg/default.nix b/pkgs/development/libraries/opencsg/default.nix index 89176c10843e..7f9c3803896b 100644 --- a/pkgs/development/libraries/opencsg/default.nix +++ b/pkgs/development/libraries/opencsg/default.nix @@ -13,6 +13,10 @@ stdenv.mkDerivation rec { doCheck = false; + preConfigure = '' + sed -i 's/^\(LIBS *=.*\)$/\1 -lX11/' example/Makefile + ''; + installPhase = '' mkdir -pv "$out/"{bin,share/doc/opencsg}