gradle2nix icon indicating copy to clipboard operation
gradle2nix copied to clipboard

stabilizing gradle-env{.json,.nix} format/interface

Open ghost opened this issue 5 years ago • 2 comments

Since we had the discussion on breaking changes in https://github.com/NixOS/nixpkgs/pull/77422 I've kind of been waiting for a 1.0.0 release in the assumption that there might be more breaking changes until then. So I would like to track the status of this stabilization here. What is still to be done, or can we use gradle2nix in nixpkgs as-is?

ghost avatar Dec 06 '20 05:12 ghost

Packaging gradle2nix should be fine, so I would start with that.

I sort of disagree with integrating the buildGradle function in nixpkgs. We don't do that for node2nix, for example, which gives node2nix the freedom to change their lockfile format. So I'd prefer we didn't do that, and just package both gradle-env.nix and gradle-env.json with each derivation that needs them.

tadfisher avatar Dec 09 '20 21:12 tadfisher

One incompatible change I want to make is to switch to SRI hashes, so I will likely rename the sha256 field for dependency objects.

tadfisher avatar Dec 10 '20 01:12 tadfisher