diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2021-08-11 16:22:42 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2021-08-11 16:22:42 +0200 |
commit | 4e7e464ae8e897d487fc412b50560f9f5f744353 (patch) | |
tree | 606f3898906c89a001671f51e6c0315d73e79277 /pkgs/development/compilers/ecl/default.nix | |
parent | 610ef47b2030813fcc9017eeda5bfd7621851bc3 (diff) | |
parent | 59287a7ba19cafec0301f77acf16ee28b4f5fd84 (diff) | |
download | nixlib-4e7e464ae8e897d487fc412b50560f9f5f744353.tar nixlib-4e7e464ae8e897d487fc412b50560f9f5f744353.tar.gz nixlib-4e7e464ae8e897d487fc412b50560f9f5f744353.tar.bz2 nixlib-4e7e464ae8e897d487fc412b50560f9f5f744353.tar.lz nixlib-4e7e464ae8e897d487fc412b50560f9f5f744353.tar.xz nixlib-4e7e464ae8e897d487fc412b50560f9f5f744353.tar.zst nixlib-4e7e464ae8e897d487fc412b50560f9f5f744353.zip |
Merge branch 'master' into staging-next
; Conflicts: ; pkgs/tools/system/sg3_utils/default.nix
Diffstat (limited to 'pkgs/development/compilers/ecl/default.nix')
-rw-r--r-- | pkgs/development/compilers/ecl/default.nix | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/pkgs/development/compilers/ecl/default.nix b/pkgs/development/compilers/ecl/default.nix index 269beef9e7a2..44f7eab62ee5 100644 --- a/pkgs/development/compilers/ecl/default.nix +++ b/pkgs/development/compilers/ecl/default.nix @@ -45,20 +45,25 @@ stdenv.mkDerivation { configureFlags = [ (if threadSupport then "--enable-threads" else "--disable-threads") - "--with-gmp-prefix=${lib.getDev gmp}" - "--with-libffi-prefix=${lib.getDev libffi}" - ] ++ lib.optional useBoehmgc "--with-libgc-prefix=${lib.getDev boehmgc}" - ++ lib.optional (!noUnicode) "--enable-unicode"; + "--with-gmp-incdir=${lib.getDev gmp}/include" + "--with-gmp-libdir=${lib.getLib gmp}/lib" + "--with-libffi-incdir=${lib.getDev libffi}/include" + "--with-libffi-libdir=${lib.getLib libffi}/lib" + ] ++ lib.optionals useBoehmgc [ + "--with-libgc-incdir=${lib.getDev boehmgc}/include" + "--with-libgc-libdir=${lib.getLib boehmgc}/lib" + ] ++ lib.optional (!noUnicode) "--enable-unicode"; hardeningDisable = [ "format" ]; - postInstall = let - ldArgs = lib.strings.concatMapStringsSep " " - (l: ''--prefix NIX_LDFLAGS ' ' "-L${l.lib or l.out or l}/lib"'') - ([ gmp libffi ] ++ lib.optional useBoehmgc boehmgc); - in '' + postInstall = '' sed -e 's/@[-a-zA-Z_]*@//g' -i $out/bin/ecl-config - wrapProgram "$out/bin/ecl" --prefix PATH ':' "${gcc}/bin" ${ldArgs} + wrapProgram "$out/bin/ecl" --prefix PATH ':' "${ + lib.makeBinPath [ + gcc # for the C compiler + gcc.bintools.bintools # for ar + ] + }" ''; meta = with lib; { |