[Nix-dev] cabal not working well out the box

Paul van der Walt paul at denknerd.nl
Thu Dec 23 15:27:34 CET 2010


Hi all,

I'm having a problem. If I do `nix-env -i cabal-install` all
goes well, but when I try to install a cabal package, for
example `cabal install uu-parsinglib` I get an error caused by
the utility "ar" being unavailable. If I manually `nix-env -i
binutils`, all the problems magically disappear. I've tried the
following in nixpkgs:

[root at nixos:/etc/nixos/nixpkgs/pkgs]# svn diff
Index: tools/package-management/cabal-install/0.8.0.nix
===================================================================
--- tools/package-management/cabal-install/0.8.0.nix
(revision 25247)
+++ tools/package-management/cabal-install/0.8.0.nix    (working
copy)
@@ -1,11 +1,11 @@
-{cabal, HTTP, network, zlib} :
+{cabal, HTTP, network, zlib, binutils} :
 
 cabal.mkDerivation (self : {
   pname = "cabal-install";
   name = self.fname;
   version = "0.8.0"; # Haskell Platform 2010.1.0.0
   sha256 =
"6d16618ff454f8d732cad64a53b767b5b6bb95ba4970b260a40e8f467035493c";
-  extraBuildInputs = [HTTP network zlib];
+  extraBuildInputs = [HTTP network zlib binutils];
 
   meta = {
     description = "The command-line interface for Cabal and
Hackage";

<snip> Same for files 0.8.2.nix and default.nix in that
directory.

But unfortunately this doesn't seem to make cabal-install depend
on binutils. What am I doing wrong? Sorry about the fact that
this question is probably really basic.

Thanks in advance,

Paul van der Walt

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20101223/7667b8a3/attachment.bin 


More information about the nix-dev mailing list