Skip to content
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

Merged
merged 2 commits into from
Sep 26, 2018
Merged

alloy: add alloy5 and take maintainership #47262

merged 2 commits into from
Sep 26, 2018

Conversation

bandali
Copy link
Member

@bandali bandali commented Sep 24, 2018

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
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

This is my first ever contribution to nixpkgs, please feel free to point out any mistakes and/or areas of improvement.

Add alloy5 (currently, 5.0.0.1), update homepage and downloadPage, and
take maintainership of the package.
@GrahamcOfBorg GrahamcOfBorg added 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Sep 24, 2018
install -Dm644 ${./icon.png} $out/share/pixmaps/alloy.png
cp -r ${desktopItem}/share/applications $out/share
'';
install -Dm755 ${nameMajor} $out/bin/${nameMajor}
Copy link
Member

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.

Copy link
Member

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" ];
Copy link
Member

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 ];
Copy link
Member

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.

@Mic92
Copy link
Member

Mic92 commented Sep 24, 2018

Please remember to remove alloy4, once alloy5 becomes the stable version.

@bandali
Copy link
Member Author

bandali commented Sep 24, 2018

@Mic92 Thanks for the feedback, I pushed another commit. And yeah I'll remove version 4 once 5 is stable.

@Mic92 Mic92 merged commit 4586ff7 into NixOS:master Sep 26, 2018
@infinisil infinisil mentioned this pull request Mar 15, 2020
1 task
@deliciouslytyped
Copy link
Contributor

Thanks for packaging this!

@Janik-Haag Janik-Haag added the 12. first-time contribution This PR is the author's first one; please be gentle! label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 12. first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants