Re: [Nix-dev] Custom libc

2016-10-21 Thread Roger Qiu
Perhaps a custom stdenv then? Or is there an override function for stdenv?
On 13/10/2016 10:01 AM, "Dmitry Kalinkin"  wrote:

> packageOverrides don’t override anything within stdenv
>
> > On 12 Oct 2016, at 18:28, Tomasz Czyż  wrote:
> >
> > Nikita, how do you override the attributes?
> >
> > Did you try packageOverrides like in example below?
> >
> > {
> >  packageOverrides = pkgs: rec {
> ># Make "xbmc" use the "python26" package,
> >#   instead of NixPkgs default python version.
> >xbmc = pkgs.xbmc.override {
> >  python = pkgs.python26;
> >};
> >  };
> >}
> >
> > 2016-10-12 22:16 GMT+01:00 Nikita Karetnikov :
> > How can I override glibc in nix-shell and use eglibc, for instance? Are
> there any examples? Do I need to override stdenv for that? Overriding the
> attributes of glibc (version and sha) directly doesn't seem to work. Could
> anyone provide an example?
> > ___
> > nix-dev mailing list
> > nix-dev@lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> >
> >
> >
> > --
> > Tomasz Czyż
> > ___
> > nix-dev mailing list
> > nix-dev@lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Custom libc

2016-10-12 Thread Dmitry Kalinkin
packageOverrides don’t override anything within stdenv

> On 12 Oct 2016, at 18:28, Tomasz Czyż  wrote:
> 
> Nikita, how do you override the attributes?
> 
> Did you try packageOverrides like in example below?
> 
> {
>  packageOverrides = pkgs: rec {
># Make "xbmc" use the "python26" package,
>#   instead of NixPkgs default python version.
>xbmc = pkgs.xbmc.override {
>  python = pkgs.python26;
>};
>  };
>}
> 
> 2016-10-12 22:16 GMT+01:00 Nikita Karetnikov :
> How can I override glibc in nix-shell and use eglibc, for instance? Are there 
> any examples? Do I need to override stdenv for that? Overriding the 
> attributes of glibc (version and sha) directly doesn't seem to work. Could 
> anyone provide an example?
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 
> 
> 
> -- 
> Tomasz Czyż
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Custom libc

2016-10-12 Thread Tomasz Czyż
Nikita, how do you override the attributes?

Did you try packageOverrides like in example below?

{
 packageOverrides = pkgs: rec {
   # Make "xbmc" use the "python26" package,
   #   instead of NixPkgs default python version.
   xbmc = pkgs.xbmc.override {
 python = pkgs.python26;
   };
 };
   }

2016-10-12 22:16 GMT+01:00 Nikita Karetnikov :

> How can I override glibc in nix-shell and use eglibc, for instance? Are
> there any examples? Do I need to override stdenv for that? Overriding the
> attributes of glibc (version and sha) directly doesn't seem to work. Could
> anyone provide an example?
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



-- 
Tomasz Czyż
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Custom libc

2016-10-12 Thread Nikita Karetnikov
How can I override glibc in nix-shell and use eglibc, for instance? Are there 
any examples? Do I need to override stdenv for that? Overriding the attributes 
of glibc (version and sha) directly doesn't seem to work. Could anyone provide 
an example?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev