Forgot to add stdenv.lib to scope!
The latest released version is too old for my needs, so I'm picking a git commit that works. I'll update it when they release a new one.