Comments (6)
Since this is still open; I use the following shell.nix
and it correctly detects the libraries, i.e. you just need to wrap diagrams-pandoc. I typically do nix-env -i -f shell.nix && nix-shell
to invoke it.
with (import (fetchTarball
https://github.com/NixOS/nixpkgs/archive/2a83412f2a15a6eb416473a37140fe9d9fac8e3b.tar.gz){}).pkgs;
let
ext = self: with self; [ diagrams diagrams-contrib diagrams-pandoc pandoc SVGFonts ];
wrappedGhc = haskell.packages.lts-5.ghcWithPackages ext;
ghcVersion = wrappedGhc.version;
in
stdenv.mkDerivation rec {
pname = "DPENV";
version = "0.1";
name = pname + "-" + version;
buildInputs = [ makeWrapper ];
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/bin
makeWrapper \
"${wrappedGhc}/bin/diagrams-pandoc" \
"$out/bin/diagrams-pandoc" \
--set NIX_GHC ${wrappedGhc}/bin/ghc \
--set NIX_GHC_LIBDIR ${wrappedGhc}/lib/ghc-${ghcVersion}
'';
shellHook = ''
export PS1="DP > "
'';
}
from diagrams-pandoc.
Can you be more specific about how you installed these things? Is it like nix-env -i
or do you have some nix-shell
environment within which the packages are in scope?
I think I used to have a shell.nix file that loaded all the necessary packages, within which I could run diagrams-pandoc. Getting HSE and Nix to work together is always tricky, though.
from diagrams-pandoc.
I tried both. Both the nix-shell and the installation with nix-env -i had the same issue.
But ideally I'd like to use it through a nix-shell, like you did, yes.
from diagrams-pandoc.
OK, thank you for clarifying. I'll dust off my .nix files and add an
example of Nix usage. I probably won't get to it before Sunday.
On 2015-11-24 at 12:49, "Yves Parès (Ywen)" [email protected] wrote:
I tried both. Both the nix-shell and the installation with nix-env -i had
the same issue.
But ideally I'd like to use it through a nix-shell, like you do, yes.2015-11-23 22:55 GMT+01:00 Daniel Bergey [email protected]:
Can you be more specific about how you installed these things? Is it like nix-env
-i or do you have some nix-shell environment within which the packages
are in scope?I think I used to have a shell.nix file that loaded all the necessary
packages, within which I could run diagrams-pandoc. Getting HSE and Nix to
work together is always tricky, though.—
Reply to this email directly or view it on GitHub
#7 (comment)
.
Reply to this email directly or view it on GitHub:
#7 (comment)
from diagrams-pandoc.
I experience the same thing with stack/cabal sandbox - I've created a new user and used per user global cabal install - then it worked
from diagrams-pandoc.
I've stumbled upon the same problem:
Error while interpreting
example = circle 1
/tmp/Diagram1804289383846930886.hs:9:8:
Could not find module ‘Graphics.SVGFonts’
Use -v to see a list of the files searched for.
but after cabal install SVGFonts
- details on the package are here:
http://hackage.haskell.org/package/SVGFonts
the problem has been resolved for me - even succeeded in producing .pdf
file with
pandoc -t latex diagrams_pandoc_example.md --filter diagrams-pandoc -o diagrams_pandoc_example.pdf -s
You might need to install other additional packages via cabal
, say diagrams
.
from diagrams-pandoc.
Related Issues (11)
- Version 0.3's exe depends on version 0.2 HOT 6
- Couldn't match expected type ‘V2’ HOT 6
- diagrams-pandoc-0.3.0.1 release HOT 2
- Error When Running Tests HOT 3
- Test fails on diagrams-1.4 HOT 3
- Upload new version to hackage HOT 1
- Issue with base dependency when installing HOT 2
- Allow -o to specify a directory hierarchy HOT 1
- Allow the specification of an output size HOT 1
- Absolute path in image tag HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diagrams-pandoc.