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

Init bsnes hd #130166

Merged
merged 2 commits into from
Jul 23, 2021
Merged

Init bsnes hd #130166

merged 2 commits into from
Jul 23, 2021

Conversation

gridbugs
Copy link
Contributor

@gridbugs gridbugs commented Jul 14, 2021

Motivation for this change

Adds the Super Nintendo (Super Famicon) emulator bsnes, specifically the bsnes-hd fork which adds some additional video features.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Relase notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@r-rmcgibbo
Copy link

Result of nixpkgs-review pr 130166 at c002f3c8 run on x86_64-linux 1

1 package built successfully:
  • bsnes-hd
5 suggestions:
  • warning: missing-phase-hooks

    installPhase should probably contain runHook preInstall and runHook postInstall.

    Near pkgs/misc/emulators/bsnes-hd/default.nix:43:3:

       |
    43 |   installPhase = ''
       |   ^
    
  • warning: unclear-gpl

    gpl3 is a deprecated license, please check if project uses gpl3Plus or gpl3Only and change meta.license accordingly.

    Near pkgs/misc/emulators/bsnes-hd/default.nix:50:5:

       |
    50 |     license = licenses.gpl3;
       |     ^
    
  • warning: missing-patch-comment

    Consider adding a comment explaining the purpose of this patch on the line preceeding.
    Near pkgs/misc/emulators/bsnes-hd/default.nix:26:34:

       |
    26 |   ++ optionals stdenv.isDarwin [ ./macos-replace-sips-with-png2icns.patch
       |                                  ^
    
  • warning: missing-patch-comment

    Consider adding a comment explaining the purpose of this patch on the line preceeding.
    Near pkgs/misc/emulators/bsnes-hd/default.nix:27:34:

       |
    27 |                                  ./macos-copy-app-to-prefix.patch ];
       |                                  ^
    
  • warning: missing-phase-hooks

    buildPhase should probably contain runHook preBuild and runHook postBuild.

    Near pkgs/misc/emulators/bsnes-hd/default.nix:39:3:

       |
    39 |   buildPhase = ''
       |   ^
    

pkgs/misc/emulators/bsnes-hd/default.nix Outdated Show resolved Hide resolved
pkgs/misc/emulators/bsnes-hd/default.nix Outdated Show resolved Hide resolved
pkgs/misc/emulators/bsnes-hd/default.nix Outdated Show resolved Hide resolved
pkgs/misc/emulators/bsnes-hd/default.nix Outdated Show resolved Hide resolved
pkgs/misc/emulators/bsnes-hd/default.nix Outdated Show resolved Hide resolved
pkgs/misc/emulators/bsnes-hd/default.nix Outdated Show resolved Hide resolved
@gridbugs
Copy link
Contributor Author

Thanks for the review @SuperSandro2000! I committed all your suggested changes and replaced the installPhase and buildPhase sections with makeFlags and enableParallelBuilding and squashed the result into a single commit. I've confirmed that patching the macos part of the makefile doesn't affect the build on linux and I've retested building/running on macos and linux.

@SuperSandro2000 SuperSandro2000 merged commit d0714a7 into NixOS:master Jul 23, 2021
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.

4 participants