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

openmsx: init at git-2017-11-02 #31184

Merged
merged 1 commit into from Nov 25, 2017
Merged

openmsx: init at git-2017-11-02 #31184

merged 1 commit into from Nov 25, 2017

Conversation

AndersonTorres
Copy link
Member

@AndersonTorres AndersonTorres commented Nov 3, 2017

Motivation for this change

New package - openmsx

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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/)
  • Fits CONTRIBUTING.md.

stdenv.mkDerivation rec {

name = "openmsx-${version}";
version = "git-2017-11-02";
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

I have talked with the openMSX developers in their IRC channel, and after presenting a bit of NixOS to them, they added a simple patch to make it build under Nix.

Do you think using the patch file is better than the hardcoded git?

openMSX/openMSX@eeb7420

Copy link
Member Author

Choose a reason for hiding this comment

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

OpenMSX is an emulator for the MSX home computer system. Its goal is
to emulate all aspects of the MSX with 100% accuracy.
'';
homepage = http://openmsx.org;
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: HTTPS version is available too

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

customBuildFile = ./custom-nixos.mk;

postUnpack = ''
cp ${customBuildFile} $sourceRoot/build/custom.mk
Copy link
Member

@lukateras lukateras Nov 9, 2017

Choose a reason for hiding this comment

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

Semantically this fits better in postPatch, additionally making $sourceRoot unnecessary. Also customBuildFile can be inlined:

postPatch = ''
  cp ${./custom-nixos.mk} build/custom.mk
'';

@Mic92 Mic92 merged commit f2a689b into NixOS:master Nov 25, 2017
@AndersonTorres AndersonTorres deleted the upload/openmsx branch February 23, 2018 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants