[Nix-dev] Re: SVN commit: nix - r29190 - in nixpkgs/trunk/pkgs: development/libraries/haskell/cairo development/libraries/haskell/glib development/libraries/haskell/gtk development/libraries/haskell/pango top-level

Peter Simons simons at cryp.to
Mon Sep 12 18:51:11 CEST 2011


Hi Shea,

 > --- nixpkgs/trunk/pkgs/development/libraries/haskell/cairo/default.nix	Sun Sep 11 18:28:14 2011	(r29189)
 > +++ nixpkgs/trunk/pkgs/development/libraries/haskell/cairo/default.nix	Sun Sep 11 18:48:46 2011	(r29190)
 > @@ -1,4 +1,4 @@
 > -{ cabal, cairo, glibc, gtk2hsBuildtools, mtl, pkgconfig, zlib }:
 > +{ cabal, cairo, gtk2hsBuildtools, mtl, pkgconfig, zlib }:
 >
 >  cabal.mkDerivation (self: {
 >    pname = "cairo";
 > @@ -6,7 +6,7 @@
 >    sha256 = "0n2sqbf8wjjvm5m1igkq685vqvc0lil3gmcs3i0g9hy7lsjnlwr9";
 >    buildDepends = [ mtl ];
 >    buildTools = [ gtk2hsBuildtools ];
 > -  extraLibraries = [ cairo glibc pkgconfig zlib ];
 > +  extraLibraries = [ cairo self.stdenv.gcc.libc pkgconfig zlib ];
 >    pkgconfigDepends = [ cairo ];
 >    meta = {
 >      homepage = "http://www.haskell.org/gtk2hs/";

these expressions are generated automatically from the Cabal file, which
means that patching them directly is not ideal, because the changes are
likely to be overwritten in the next update. I have modified cabal2nix
so that it generates a dependency on 'libc' for those packages, and that
attribute is then overridden in haskell-packages.nix. The effect should
be the same.

Take care,
Peter




More information about the nix-dev mailing list