[Nix-dev] bug? nix-env -qa doesnt find what it should
Tony White
tonywhite100 at googlemail.com
Sun Jun 7 19:30:36 CEST 2009
2009/6/7 Lluís Batlle <viriketo at gmail.com>:
> I don't know what the nix developer intended to do, but I think nix
> never worked for me as a 'grep' after -qa '*'.
> If you looked for "nix-env -qa apache-tomcat", it would have worked. I
> think it tries to fully match the non-version part of a derivation
> name.
>
> Regards,
> Lluís.
>
> 2009/6/6 Axel Grosz <axel+enamg at iaeste.at>:
>> $ nix-env -qa tomcat
>> error: selector `tomcat' matches no derivations
>> $ nix-env -qa 'tomcat*'
>> error: selector `tomcat*' matches no derivations
>> $ nix-env -qa '*' | grep tomcat
>> apache-tomcat-6.0.18
>> jakarta-tomcat-5.0.27
>> tomcat-connectors-1.2.26
>> tomcat-mysql-jdbc
>>
>> thats on nix-0.13pre15214 on an ubuntu 8.10
>> the nix-0.12 did work correctly if i remember right
>> my system:
>> <item attrPath="nixpkgs_stable.nixUnstable" installed="1"
>> name="nix-0.13pre15214" substitutable="1" system="x86_64-linux" valid="1">
>>
>> --
>> regards,
>> Axel Gross
>>
>>
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at cs.uu.nl
>> https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>>
> _______________________________________________
> nix-dev mailing list
> nix-dev at cs.uu.nl
> https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>
Hi,
Mmm, this is what I just recieved from nix-env -qa gcc :
nix-env -qa gcc
error: while evaluating the function at
`/etc/nixos/nixpkgs/pkgs/tools/misc/mcrl2/default.nix:1:2':
the function does not expect an argument named `libX11'
So some problem with something. Should nix-env -qa gcc not return a
result even if finds errors like this?
So, changing /etc/nixos/nixpkgs/pkgs/tools/misc/mcrl2/default.nix to this :
{stdenv, fetchurl, mesa, wxGTK, libX11 }:
stdenv.mkDerivation {
name = "mcrl2-200901";
src = fetchurl {
url = http://www.win.tue.nl/mcrl2/download/release/mcrl2-200901-src.tar.bz2
;
sha256 = "0lji31d7dv15q8092b8g01j023dd7miq3nw8klgc8jd136xpwdp9";
};
buildInputs = [ mesa wxGTK ] ;
}
Now results in :
nix-env -qa gcc
trace: Str("Deprecated use of lib.getAttr!",[])
error: selector `gcc' matches no derivations
So as a result, I'm seeing similar using nixos, I guess.
Thanks,
Tony
More information about the nix-dev
mailing list