[Nix-dev] Hydra evaluation error: value is an attribute set while a string was expected

phreedom at yandex.ru phreedom at yandex.ru
Sun Aug 11 20:12:53 CEST 2013


В письме от Воскресенье 11 августа 2013 16:55:54 пользователь Bjørn Forsman 
написал:
> It seems I've committed something that breaks the channel (sorry!).
> Hydra has these evaluation errors[1]:
> 
> [...]
> at `nixpkgs.linuxPackages.lttngModules.i686-linux' [nixosSrc = ...,
> nixpkgs = ..., officialRelease = false]:
> value is an attribute set while a string was expected
> [...]

Probably it is the license field, and due to having multiple licenses.
See 80213cbb051f2e172be20c03e51069f122d8bb6c
I have no idea what is the best way to fix this.


> Unfortunately, I'm unable to figure out *which* value it complains
> about. "nix-build -A linuxPackages.lttngModules" runs fine on my
> system, so I'm thinking its something with the meta attributes. Btw, I
> wouldn't mind a more helpful error message, one with a bit more
> context. Hint Hint ;-)
> 
> The lttngModules expression is this
> 
> { stdenv, fetchurl, kernelDev }:
> 
> stdenv.mkDerivation rec {
>   pname = "lttng-modules-2.2.1";
>   name = "${pname}-${kernelDev.version}";
> 
>   src = fetchurl {
>     url = "https://lttng.org/files/lttng-modules/${pname}.tar.bz2";
>     sha256 = "00ww1443ssv614s1ix6zby8llaf6zzlxcf5k4w7jsyji47ng33m2";
>   };
> 
>   patches = [ ./lttng-fix-build-error-on-linux-3.2.patch ];
> 
>   preConfigure = ''
>     export
> KERNELDIR="${kernelDev}/lib/modules/${kernelDev.modDirVersion}/build"
> export INSTALL_MOD_PATH="$out"
>   '';
> 
>   installPhase = ''
>     make modules_install
>   '';
> 
>   meta = with stdenv.lib; {
>     description = "Linux kernel modules for LTTng tracing";
>     homepage = http://lttng.org/;
>     license = with licenses; [ lgpl21 gpl2 mit ];
>     platforms = platforms.linux;
>     maintainers = [ maintainers.bjornfor ];
>   };
> 
> }
> 
> Does anyone see what is wrong?
> 
> How do I reproduce this locally?
> 
> [1]: http://hydra.nixos.org/jobset/nixos/trunk-combined#tabs-errors
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev


More information about the nix-dev mailing list