[Nix-dev] overriding gcc in dependencies.
roconnor at theorem.ca
roconnor at theorem.ca
Mon Oct 4 17:49:50 CEST 2010
openjade requires gcc33 to build.
openjade also requires opensp to build.
opensp doesn't require gcc33 to build.
How do I get openjade to use a version of opensp that uses gcc33?
Below I just inline a new derivation of opensp, but such cut and paste
doesn't seem very modular.
Index: pkgs/top-level/all-packages.nix
===================================================================
--- pkgs/top-level/all-packages.nix (revision 24054)
+++ pkgs/top-level/all-packages.nix (working copy)
@@ -942,6 +942,11 @@
openjade = callPackage ../tools/text/sgml/openjade {
stdenv = overrideGCC stdenv gcc33;
+ /* we need to depend on a version of opensp compiled with the same
version of gcc (libc?)
+ that openjade uses */
+ opensp = callPackage ../tools/text/sgml/opensp {
+ stdenv = overrideGCC stdenv gcc33;
+ };
};
openobex = callPackage ../tools/bluetooth/openobex { };
--
Russell O'Connor <http://r6.ca/>
``All talk about `theft,''' the general counsel of the American Graphophone
Company wrote, ``is the merest claptrap, for there exists no property in
ideas musical, literary or artistic, except as defined by statute.''
More information about the nix-dev
mailing list