[Nix-dev] xorgReplacements broke in nix-0.12pre12474

Michael Raskin 7c6f434c at mail.ru
Wed Oct 29 11:06:43 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eelco Dolstra wrote:
> BTW, can someone explain to me what xorgReplacements is for?  And why the crazy
> complexity of that function:

To have xserver job using non-default set of X.org packages.

> {stdenv, fetchurl, xorg, automake, autoconf, libtool, composedArgsAndFun, ...}:
> {
>   xf86videoati = {src, suffix, ...}:
>   composedArgsAndFun stdenv.mkDerivation {
> ...
> 
> and then the call site:
> 
>   xorgReplacements = composedArgsAndFun (import
> ../servers/x11/xorg/replacements.nix) {

Probably, overgeneralization.. I just tend to use these general cases
sometimes. Usually, a bit after writing original expression..

> I don't understand any of this stuff.  I have the impression that this is highly
> user-specific customization stuff that can be ripped from Nixpkgs entirely and
> placed in ~/.nixpkgs/config.nix, but I might be mistaken.  (This applies to

Maybe we could start a separate repo for such hacks - it makes sense. If
I find anything non-trivial while making a replacement package to work,
I'd like to commit it somewhere (so when the next one with Radeon Xpress
1100 = X200M comes asking for advice with 3D/Randr, I can tell "install
that expression with such parameters"). I don't think we want any
additional effort duplication inside NixOS for external
(non-Nix-specific) issues.

> almost all the recent complexity in all-packages.nix BTW: almost all getConfig
> calls, the selectVersion calls --- it's unnecessary because it can be done more
> easily in config.nix).

I am vary to use that overriding because I am not quite sure about its
evaluation behavior in some really weird testcase that I haven't yet
invented.. Also I just do not like config.nix whenever it can be
avoided, because it makes having a few different versions more difficult.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEcBAEBAgAGBQJJCDWxAAoJEE6tnN0aWvw3a/EH/3Ionb4pLRxHx6YeCxg274Lh
2KR5I74DUVxVpJvNlT4gqFf12s67sq+T+p7rmkl0m0yUyVTKAjKDUZmjOaiECxe3
ihkK8NLmlNM+m5bOzBsu0lqYPYd3JjjRlU1FQ0lamGlCecTLnfYj6Es6JXrYygtV
mXAXTgrs3ZNRK+NcTyd/S+BhFd7cha3I1pXISMAw9aizleL9YJrJsnfEkXG5kd/l
Y/8v7i/9G5xkuaXjIZGLQC9HyT5Keqbr1rvdHMhedujLhSKsRdD2y9HRzsnyIQvL
/QQr4XsuWhN2dNhN6wMZtCe40yPzNCPBx2lohhGPcn1Hs1v6s/iuaaQGP9Swdus=
=fRwp
-----END PGP SIGNATURE-----



More information about the nix-dev mailing list