There is a conflict installing groovy and openjdk in the same nix profile. The LICENSE file exists at the toplevel; it should probably be located elsewhere for both packages.
$ nix-env -iA nixpkgs.groovy nixpkgs.openjdk
...
collision between ‘/nix/store/mjd2gsnx14q6n05f8fwjk0ry6kms0m40-groovy-2.4.6/LICENSE’ and ‘/nix/store/g26vd7kl13vsfpghs9pks4avrwl8drng-openjdk-7u60b30/LICENSE’; use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
nix-env --version) nix-env (Nix) 1.11.4nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion) 17.03pre94294.a057dfcI think you could make a pull request, where you delete LICENSE in both package, within postInstall.
May be related to what I am seeing with bind in #19761
Wouldn't it be more sensible to move it to, say, ${out}/share/<pkgname>/LICENSE in postInstall?
Yes, this stuff should not be installed in top level.
Okay, I will fix that. (Can someone assign me?)
I think only people with commit access can be assigned. But it's yours :)
@pSub: It looks like this can be closed, unless you want to cherry pick to 16.09