Commit 6623b461 authored by Alfredo Di Napoli's avatar Alfredo Di Napoli Committed by Alfredo Di Napoli

Fix Duckling via text16-compat

parent cc174d0b
...@@ -173,7 +173,12 @@ source-repository-package ...@@ -173,7 +173,12 @@ source-repository-package
source-repository-package source-repository-package
type: git type: git
location: https://github.com/adinapoli/duckling.git location: https://github.com/adinapoli/duckling.git
tag: d84d64d79cbdd2efb874cbb1bc804ac013e848e2 tag: 23603a832117e5352d5b0fb9bb1110228324b35a
source-repository-package
type: git
location: https://github.com/adinapoli/text16-compat.git
tag: 85533b5d597e6fc5498411b4bcfc76380ec80d71
allow-older: * allow-older: *
allow-newer: * allow-newer: *
......
...@@ -207,8 +207,8 @@ stdenv.mkDerivation (rec { ...@@ -207,8 +207,8 @@ stdenv.mkDerivation (rec {
] ++ (if stdenv.isDarwin ] ++ (if stdenv.isDarwin
then [ # Reverts the linking behavior of GHC to not resolve `-libc++` to `c++`. then [ # Reverts the linking behavior of GHC to not resolve `-libc++` to `c++`.
(fetchpatch { (fetchpatch {
url = "https://gist.githubusercontent.com/adinapoli/bf722db15f72763bf79dff13a3104b6f/raw/21e4fe65e71e721aece563b0c39be6ba1ace5b28/ghc947-macOS-loadArchive-fix.patch"; url = "https://gist.githubusercontent.com/adinapoli/bf722db15f72763bf79dff13a3104b6f/raw/362da0aa3db5c530e0d276183ba68569f216d65a/ghc947-macOS-loadArchive-fix.patch";
sha256 = "sha256-0rWN6nGIVlB65QBGX3PaHPQFCitGGC8wTJg8kPJu5KQ="; sha256 = "sha256-0tHrkWRKFWUewj3uIA0DujVCXo1qgX2lA5p0MIsAHYs=";
}) })
] ]
else []); else []);
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
rec { rec {
inherit pkgs; inherit pkgs;
ghc947 = pkgs.callPackage ./overlays/ghc947.nix { ghc947 = pkgs.callPackage ./overlays/ghc947.nix {
stdenv = pkgs.clang12Stdenv; stdenv = pkgs.gccStdenv;
bootPkgs = pkgs.haskell.packages.ghc8107; bootPkgs = pkgs.haskell.packages.ghc8107;
inherit (pkgs.buildPackages.python3Packages) sphinx; inherit (pkgs.buildPackages.python3Packages) sphinx;
# Need to use apple's patched xattr until # Need to use apple's patched xattr until
...@@ -110,7 +110,7 @@ rec { ...@@ -110,7 +110,7 @@ rec {
graphviz graphviz
clang_12 clang_12
llvm_12 llvm_12
gcc7 gcc12
igraph_0_10_4 igraph_0_10_4
libpqxx libpqxx
libsodium libsodium
...@@ -121,11 +121,11 @@ rec { ...@@ -121,11 +121,11 @@ rec {
shellHook = '' shellHook = ''
export LD_LIBRARY_PATH="${pkgs.gfortran7.cc.lib}:${libPaths}:$LD_LIBRARY_PATH" export LD_LIBRARY_PATH="${pkgs.gfortran7.cc.lib}:${libPaths}:$LD_LIBRARY_PATH"
export LIBRARY_PATH="${pkgs.gfortran7.cc.lib}:${libPaths}" export LIBRARY_PATH="${pkgs.gfortran7.cc.lib}:${libPaths}"
export PATH="${pkgs.clang_12}/bin:$PATH" export PATH="${pkgs.gccStdenv}/bin:$PATH"
export NIX_CC="${pkgs.clang_12}" export NIX_CC="${pkgs.gccStdenv}"
export CC="${pkgs.clang_12}/bin/clang" export CC="${pkgs.gccStdenv}/bin/gcc"
''; '';
shell = pkgs.mkShell.override { stdenv = pkgs.clang12Stdenv; } { shell = pkgs.mkShell.override { stdenv = pkgs.gccStdenv; } {
name = "gargantext-shell"; name = "gargantext-shell";
buildInputs = hsBuildInputs ++ nonhsBuildInputs; buildInputs = hsBuildInputs ++ nonhsBuildInputs;
inherit shellHook; inherit shellHook;
......
...@@ -110,7 +110,9 @@ extra-deps: ...@@ -110,7 +110,9 @@ extra-deps:
commit: 91928b5d7f9342e9865dde0d94862792d2b88779 commit: 91928b5d7f9342e9865dde0d94862792d2b88779
# Temporary fork of duckling # Temporary fork of duckling
- git: https://github.com/adinapoli/duckling.git - git: https://github.com/adinapoli/duckling.git
commit: d84d64d79cbdd2efb874cbb1bc804ac013e848e2 commit: 23603a832117e5352d5b0fb9bb1110228324b35a
- git: https://github.com/adinapoli/text16-compat.git
commit: 85533b5d597e6fc5498411b4bcfc76380ec80d71
# Others dependencies (using stack resolver) # Others dependencies (using stack resolver)
- HSvm-0.1.1.3.22 - HSvm-0.1.1.3.22
- KMP-0.2.0.0@sha256:6dfbac03ef00ebd9347234732cb86a40f62ab5a80c0cc6bedb8eb51766f7df28,2562 - KMP-0.2.0.0@sha256:6dfbac03ef00ebd9347234732cb86a40f62ab5a80c0cc6bedb8eb51766f7df28,2562
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment