minecraftServers: move to by-name#512168
Conversation
edf20b1 to
dae3d9d
Compare
|
I think nixpkgs-vet is wrong here. |
yeah there is a open issue for that on nixpkgs-vet |
dae3d9d to
a3ed9a6
Compare
mdaniels5757
left a comment
There was a problem hiding this comment.
Per pkgs/by-name/README.md, "[t]he return value [of each package.nix] must be a derivation". Even if it "works" (and I haven't tested myself) to have non-derivation return values, it breaks assumptions of nixpkgs-vet and the merge bot to have non-derivation package.nix return values, and doing so is also contrary to the design in NixOS/rfcs#140.
You need NixOS/rfcs#197, I think.
|
the readme also documents exporting a set of derivations though which is what i do here |
|
@zimward, you have to refactor this to do what the readme is suggesting for multi version packages. Instead of exposing an atrrset of packages in package.nix, you need to turn that into a single derivation. And in all-packages.nix you have to do the trick mentioned in the section you linked. So recurseForDerivations removed and the full attrset needs to be refactored. |
|
Actually this worked
|
a3ed9a6 to
2d2cc10
Compare
|
@mdaniels5757 please review. It is now passing vet. |
named
minecraftServersbecause the package set is named thatThings done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.