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

moon-buggy: init at 1.0.51 #28165

Merged
merged 3 commits into from Aug 11, 2017
Merged

moon-buggy: init at 1.0.51 #28165

merged 3 commits into from Aug 11, 2017

Conversation

rybern
Copy link
Contributor

@rybern rybern commented Aug 11, 2017

Motivation for this change

moon-buggy is fun

Things done

Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers.

  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • 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/)
  • Fits CONTRIBUTING.md.

This is my first pull request. Please let me know anything I can improve on, because I'd like to contribute more in the future.

};

meta = {
inherit (s) version;
Copy link
Member

Choose a reason for hiding this comment

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

version is not an valid attribute here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the comments, I'll correct them. I was basing this off of the n2048 package, maybe I'll fix that one too while I'm at it.

inherit buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
Copy link
Member

Choose a reason for hiding this comment

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

You can actually just inline all attributes instead of using inherit. It does not really provide a benefit here. Just add rec after mkDerivation:

stdenv.mkDerivation rec {

inherit (s) version;
description = ''A simple character graphics game where you drive some kind of car across the moon's surface'';
license = stdenv.lib.licenses.gpl2;
maintainers = [];
Copy link
Member

Choose a reason for hiding this comment

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

Do you want to maintain this package?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure - I was wondering about this. Do I just add myself to lib/maintainers.nix and reference it in the list here?

Copy link
Member

@fpletz fpletz left a comment

Choose a reason for hiding this comment

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

Awesome, thanks! Almost forgot this game from my childhood memories! 🍻

@fpletz fpletz merged commit d06ab41 into NixOS:master Aug 11, 2017
@rybern rybern deleted the add-moon-buggy branch August 11, 2017 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants