From 2355189b15ae4e1f2805a2a230fc515edc2ac693 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Tue, 27 Mar 2018 07:35:36 +0900 Subject: [PATCH] gnulib: symlink include/ to lib/ so that some programs can find the headers automatically instead of adding -I${gnulib}/lib --- pkgs/development/tools/gnulib/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/gnulib/default.nix b/pkgs/development/tools/gnulib/default.nix index 4ca3bf5e0741..eeaec8eb0335 100644 --- a/pkgs/development/tools/gnulib/default.nix +++ b/pkgs/development/tools/gnulib/default.nix @@ -9,8 +9,12 @@ stdenv.mkDerivation { sha256 = "0sifr3bkmhyr5s6ljgfyr0fw6w49ajf11rlp1r797f3r3r6j9w4k"; }; - installPhase = "mkdir -p $out; mv * $out/"; dontFixup = true; + # no "make install", gnulib is a collection of source code + installPhase = '' + mkdir -p $out; mv * $out/ + ln -s $out/lib $out/include + ''; meta = { homepage = http://www.gnu.org/software/gnulib/;