From bd879d2bef70591766057da7927f89eeeeaf7078 Mon Sep 17 00:00:00 2001 From: Julien Dehos Date: Wed, 23 Aug 2017 16:41:16 +0200 Subject: [PATCH] eigen: fix configuration file for pkg-config --- pkgs/development/libraries/eigen/3.3.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/eigen/3.3.nix b/pkgs/development/libraries/eigen/3.3.nix index 582b4fed9df9..94652b129345 100644 --- a/pkgs/development/libraries/eigen/3.3.nix +++ b/pkgs/development/libraries/eigen/3.3.nix @@ -13,7 +13,11 @@ stdenv.mkDerivation { }; nativeBuildInputs = [ cmake ]; - + + postInstall = '' + sed -e '/Cflags:/s@''${prefix}/@@' -i "$out"/share/pkgconfig/eigen3.pc + ''; + meta = with stdenv.lib; { description = "C++ template library for linear algebra: vectors, matrices, and related algorithms"; license = licenses.lgpl3Plus;