machine:
Linux scw-debJessie 4.14.12-mainline-rev1 #1 SMP Fri Jan 5 16:30:27 UTC 2018 x86_64 GNU/Linux
stack --nix build result
failed
log
Configuring inline-r-0.9.1...
Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2: The pkg-config package 'libR' version
>=3.0 is required but it could not be found.
shell.nix
{pkgs ? import <nixpkgs> { }, ghc ? pkgs.haskell.compiler.ghc822}:
with pkgs;
let
# Uncomment the line below to build HaskellR against a version of R with
# the --enable-strict-barrier configure flag enabled for better memory
# diagnostics.
# R = pkgs.R.override { enableStrictBarrier = true; };
R-with-pkgs = rWrapper.override {
packages = with rPackages;
[
ggplot2
dplyr
xts
];
};
# XXX Workaround https://ghc.haskell.org/trac/ghc/ticket/11042.
libHack = if stdenv.isDarwin then {
DYLD_LIBRARY_PATH = ["${R}/lib/R/lib"];
} else {
LD_LIBRARY_PATH = ["${R}/lib/R"];
};
in
haskell.lib.buildStackProject ({
name = "HaskellR";
inherit ghc;
buildInputs =
[ python36Packages.ipython
python36Packages.jupyter_client
python36Packages.notebook
R-with-pkgs
zeromq
zlib
];
LANG = "en_US.UTF-8";
LD_LIBRARY_PATH = ["${R}/lib/R/"];
} // libHack)
machine: Linux scw-debJessie 4.14.12-mainline-rev1 #1 SMP Fri Jan 5 16:30:27 UTC 2018 x86_64 GNU/Linux
stack --nix build result failed log
shell.nix