New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aspectj: 1.5.2 -> 1.9.6 #96209
aspectj: 1.5.2 -> 1.9.6 #96209
Conversation
name = "aspectj-1.5.2"; | ||
pname = "aspectj"; | ||
version = "1.9.6"; | ||
versionSnakeCase = builtins.replaceStrings ["."] ["_"] version; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
versionSnakeCase = builtins.replaceStrings ["."] ["_"] version; |
Use something like
src = let
versionSnakeCase = builtins.replaceStrings ["."] ["_"] version;
in fetchurl {
url = "http://archive.eclipse.org/tools/aspectj/${name}.jar";
sha256 = "1b3mx248dc1xka1vgsl0jj4sm0nfjsqdcj9r9036mvixj1zj3nmh";
url = "https://github.com/eclipse/org.aspectj/releases/download/V${versionSnakeCase}/aspectj-${version}.jar";
sha256 = "02jh66l3vw57k9a4dxlga3qh3487r36gyi6k2z2mmqxbpqajslja";
};
We should avoid adding unnecessary environment variables to the build environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have applied the suggestion.
a95c9f8
to
86efeaf
Compare
As discussed on the mailing list, the url is now pointed at the github project release because the previous eclipse archive link was not kept up-to-date anymore. Relevant links: - https://www.eclipse.org/lists/aspectj-dev/msg03311.html
86efeaf
to
258fe58
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version bump looks ok.
Result of nixpkgs-review pr 96209
1
1 package built:
- aspectj
Note though that this derivation needs work, because it is impure. E.g., it requires /bin/sh
to be available.
@danieldk Is this because of the usage of |
Sorry, I meant that the output is impure. Most of the scripts (e.g. |
Motivation for this change
The package version was quite behind the current stable release. Also, as discussed on the mailing list (see here), the url is now pointed at the github project release because the previous eclipse archive link was not kept up-to-date anymore.
I have tested the new version with Larva runtime verification tool and there were no problems.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)