Hi all, I'm trying to package the haskell music-suite for nix, and so I'm
running down all the dependencies, packaging them. One of these is
roman-numerals ( https://hackage.haskell.org/package/roman-numerals ). I
use cabal2nix to generate the nix-expression, then I install it as usual
with

nix-env -f . -iA haskellPackages.romanNumerals

But here it is the error I get:

installing `haskell-roman-numerals-ghc7.8.3-0.5.1.4-shared'
these derivations will be built:
  
/nix/store/cgxwind7xv4qkk4n2a0kf9y071xgjk25-haskell-roman-numerals-ghc7.8.3-0.5.1.4-shared.drv
building path(s)
`/nix/store/x7bpcb7cq9hvpda3r21sqwcb6m0rscaz-haskell-roman-numerals-ghc7.8.3-0.5.1.4-shared'
building 
/nix/store/x7bpcb7cq9hvpda3r21sqwcb6m0rscaz-haskell-roman-numerals-ghc7.8.3-0.5.1.4-shared
unpacking sources
unpacking source archive
/nix/store/v3qj2h0ckbwqw08bzdmv7kyf1fsd6jbd-roman-numerals-0.5.1.4.tar.gz
source root is roman-numerals-0.5.1.4
patching sources
configuring
[1 of 1] Compiling Main             ( Setup.hs,
/tmp/nix-build-haskell-roman-numerals-ghc7.8.3-0.5.1.4-shared.drv-0/Main.o
)
Linking Setup ...
configure flags: --enable-split-objs --disable-library-profiling
--enable-shared --enable-library-vanilla --enable-executable-dynamic
--enable-tests
--ghc-option=-optl=-Wl,-rpath=/nix/store/x7bpcb7cq9hvpda3r21sqwcb6m0rscaz-haskell-roman-numerals-ghc7.8.3-0.5.1.4-shared/lib/ghc-7.8.3/roman-numerals-0.5.1.4
Configuring roman-numerals-0.5.1.4...
Setup: At least the following dependencies are missing:
text >=0.11 && <1.2
building
Setup: Run the 'configure' command first.
builder for
`/nix/store/cgxwind7xv4qkk4n2a0kf9y071xgjk25-haskell-roman-numerals-ghc7.8.3-0.5.1.4-shared.drv'
failed with exit code 1
error: build of
`/nix/store/cgxwind7xv4qkk4n2a0kf9y071xgjk25-haskell-roman-numerals-ghc7.8.3-0.5.1.4-shared.drv'
failed

I see it's complaining about the package text, because I have Text version
1.2.0.0 installed (the one that's currently packaged in nixos-unstable),
and the package would like to have a lower version.

Now, what is the preferred course of action here? Should I package also a
version of text pre 1.2.0.0? What are naming conventions in this case?
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to