cocreature / diagrams-miso Goto Github PK
View Code? Open in Web Editor NEWMiso backend for the diagrams Haskell graphics library
License: Other
Miso backend for the diagrams Haskell graphics library
License: Other
How do I use this package with nix?
Error:
error: anonymous function at /nix/store/l64vv44y0dnqq5979cq4pgfydd9jjb1f-cabal2nix-app/default.nix:1:1 called without required argument 'diagrams-miso', at /nix/store/9r1vhvri4ba913g4vyg5jqrhg6pb9amn-source/pkgs/development/haskell-modules/make-package-set.nix:87:27
default.nix:
with (import (builtins.fetchTarball {
url = "https://github.com/dmjio/miso/archive/561ffad.tar.gz";
sha256 = "1wwzckz2qxb873wdkwqmx9gmh0wshcdxi7gjwkba0q51jnkfdi41";
}) {});
{
dev = pkgs.haskell.packages.ghc865.callCabal2nix "app" ./. { miso = miso-jsaddle; };
release = pkgs.haskell.packages.ghcjs86.callCabal2nix "app" ./. {};
inherit pkgs;
}
app.cabal:
name: app
version: 0.1.0.0
synopsis: First miso app
category: Web
build-type: Simple
cabal-version: >=1.10
executable app
main-is: Main.hs
ghcjs-options:
-dedupe
build-depends: base, miso, lens, warp, jsaddle-warp, websockets, containers, mtl, diagrams-lib, diagrams-miso
default-language: Haskell2010
default-extensions: OverloadedStrings, DuplicateRecordFields, TemplateHaskell, FlexibleInstances, MultiParamTypeClasses, FunctionalDependencies, FlexibleContexts, TypeApplications, ScopedTypeVariables
as a lover of diagrams, this is an awesome library and i'm very excited to try it :)
presently, miso builds nicely with stack
i'm trying to include this library as a dep of sample-app
; i've tried changing the app.cabal
there to have:
build-depends: base, miso, diagrams-miso
and pointing the stack file at a clone of diagrams-miso like so:
extra-deps:
- miso-0.18.0.0
- ../../diagrams-miso
but no such luck; i get:
03:43 PM noon ∈ sample-app (master*) ♫ stack build
Building a GHCJS project. Note that GHCJS support in Stack is EXPERIMENTAL
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for diagrams-miso-0.1:
base-4.8.2.0 from stack configuration does not match >=4.9 && <4.10 (latest matching version is 4.9.1.0)
diagrams-core-1.3.0.8 from stack configuration does not match >=1.4 && <1.5 (latest matching version is 1.4.1.1)
diagrams-lib-1.3.1.4 from stack configuration does not match >=1.4 && <1.5 (latest matching version is 1.4.2.3)
lens-4.13 from stack configuration does not match >=4.15 && <4.16 (latest matching version is 4.15.4)
needed due to app-0.1.0.0 -> diagrams-miso-0.1
it gets much further with allow-newer: true
, but fails here:
Configuring hinotify-0.3.8.1...
Building hinotify-0.3.8.1...
Preprocessing library hinotify-0.3.8.1...
hsc2hs-ghcjs-0.2.0.9006020-7.10.3.bin: hsc2hs: rawSystem: runInteractiveProcess: exec: does not exist (No such file or directory)
and stack-installing that binary doesn't really help (probably not surprisingly; i'm not even sure what that does here...)
thoughts?
would it be best to set up a stack environment in this repo first, maybe following the scheme of miso itself, or is there some better approach?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.