-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
alloy: add alloy5 and take maintainership #47262
Conversation
Add alloy5 (currently, 5.0.0.1), update homepage and downloadPage, and take maintainership of the package.
install -Dm644 ${./icon.png} $out/share/pixmaps/alloy.png | ||
cp -r ${desktopItem}/share/applications $out/share | ||
''; | ||
install -Dm755 ${nameMajor} $out/bin/${nameMajor} |
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.
Use makeWrapper
here as described in the java chapter of the nixpkgs manual.
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.
makeWrapper
goes to nativeBuildInputs
|
||
installPhase = '' | ||
jar=$out/share/alloy/alloy${version}.jar | ||
phases = [ "installPhase" ]; |
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 would rather not override these phases as it gives users to apply custom modifications when overriding the package.
|
||
phases = [ "installPhase" ]; | ||
buildInputs = [ jre ]; |
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.
Not really used for building. In the wrapper the full path is specified already.
Please remember to remove alloy4, once alloy5 becomes the stable version. |
@Mic92 Thanks for the feedback, I pushed another commit. And yeah I'll remove version 4 once 5 is stable. |
Thanks for packaging this! |
Add alloy5 (currently, 5.0.0.1), update homepage and downloadPage, and
take maintainership of the package.
Motivation for this change
I've started using
alloy
for my research, and noticed that the package was orphaned a while ago, and that alloy 5 wasn't available on nixpkgs. So I thought I'd change that 🙂Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)This is my first ever contribution to nixpkgs, please feel free to point out any mistakes and/or areas of improvement.