Skip to content

treewide: set sourceProvenance for packages containing downloaded jars#176278

Merged
risicle merged 3 commits intoNixOS:masterfrom
risicle:ris-jar-source-provenance
Jun 5, 2022
Merged

treewide: set sourceProvenance for packages containing downloaded jars#176278
risicle merged 3 commits intoNixOS:masterfrom
risicle:ris-jar-source-provenance

Conversation

@risicle
Copy link
Copy Markdown
Contributor

@risicle risicle commented Jun 4, 2022

Description of changes

This is a broad and coarse sweep for packages I could easily identify as containing downloaded jars in their outputs. It may well need further refinement from package maintainers. Some of these packages also contain binary native code, but I have not marked that in this PR - though I've made a note of these packages for the native-code-sweep.

Packages which build the main package but use binary dependencies have been marked as both fromSource and binaryBytecode to differentiate them from packages which simply download the whole thing. The practical difference here is that the former packages would be patchable if necessary, whereas the latter wouldn't.

Gradle-based builds are included as a separate commit as I wasn't quite so 100% sure where they were all gathering their deps from. It's oddly opaque.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jun 4, 2022
Copy link
Copy Markdown
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't double check if 100% of the packages are really like this but seems logical to me and the code seems to be alright.

, sha512
, type ? "jar"
, suffix ? ""
, sourceProvenance ? (if type == "jar" then [ lib.sourceTypes.binaryBytecode ] else [])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't double check if this is right.

meta = with lib; {
homepage = "https://github.com/tobiasmelcher/EclipseAceJump";
description = "Provides fast jumps to text based on initial letter";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to move this to buildEclipsePlugin since probably all or most plugins are like this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think some people might find that to be surprising behaviour.

@bobby285271 bobby285271 added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 5, 2022
@risicle risicle merged commit 53573e4 into NixOS:master Jun 5, 2022
@bobby285271 bobby285271 mentioned this pull request Oct 1, 2022
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants