Error: attribute 'lib' missing

I’m trying to update the jdk in my nur project. It works locally but travis-ci is failing.


$ nix-build ci.nix -A buildOutputs
error: attribute 'lib' missing, at /home/travis/build/moaxcp/nur/pkgs/adoptopenjdk-bin/jdk-linux-base.nix:73:15

I’m guessing this has something to do with changes to the unstable channel but I’m not sure where the problem is. Does anyone know why ‘lib’ is missing?

stdenv.lib has recently been removed (in favor of just lib). I guess that’s your issue

3 Likes

Thanks for the info. Now I’m getting.

error: undefined variable 'licenses' at /home/travis/build/moaxcp/nur/pkgs/adoptopenjdk-bin/jdk-linux-base.nix:74:15

My guess is this was changed as well. I’m going to checkout nixpkgs and see if I can figure it out. Thanks for the help!