Skip to content

4d-minesweeper: init at 2.0#244054

Closed
merspieler wants to merge 2 commits intoNixOS:masterfrom
merspieler:4d-minesweeper
Closed

4d-minesweeper: init at 2.0#244054
merspieler wants to merge 2 commits intoNixOS:masterfrom
merspieler:4d-minesweeper

Conversation

@merspieler
Copy link
Contributor

Description of changes

4D Minesweeper written in Godot

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release 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.

@Janik-Haag

Copy link
Member

@Janik-Haag Janik-Haag left a comment

Choose a reason for hiding this comment

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

Looks good for the most part. But we might want to wait with merging a few more days since #177578 affects this and should redo the godot stuff.

@Janik-Haag
Copy link
Member

ci fails because of trailing white spaces:

pkgs/games/4d-minesweeper/default.nix:
	67: Trailing whitespace
	73: Trailing whitespace

@Janik-Haag
Copy link
Member

Janik-Haag commented Jul 17, 2023

Update pkgs/games/4d-minesweeper/default.nix should be amended locally, so we can keep atomic commits.

@Janik-Haag
Copy link
Member

nixpkgs-review fails with:

error:
       … from call site

         at /home/janik/.cache/nixpkgs-review/pr-244054/nixpkgs/pkgs/top-level/all-packages.nix:36663:21:

        36662|
        36663|   _4d-minesweeper = callPackage ../games/4d-minesweeper { };
             |                     ^
        36664|

       … while calling 'callPackageWith'

         at /home/janik/.cache/nixpkgs-review/pr-244054/nixpkgs/lib/customisation.nix:122:35:

          121|   */
          122|   callPackageWith = autoArgs: fn: args:
             |                                   ^
          123|     let

       error: evaluation aborted with the following error message: 'Function called without required argument "alsaLib" at /home/janik/.cache/nixpkgs-review/pr-244054/nixpkgs/pkgs/games/4d-minesweeper/default.nix:7, did you mean "alsa-lib"?'
https://github.com/NixOS/nixpkgs/pull/244054 failed to build

you probably have to change the alsa-lib buildInput

Signed-off-by: fly <merspieler@airmail.cc>
Copy link
Member

@Janik-Haag Janik-Haag left a comment

Choose a reason for hiding this comment

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

you are currently using an alias, please change that to the actual package

@Janik-Haag
Copy link
Member

Result of nixpkgs-review pr 244054 run on x86_64-linux 1

1 package built:
  • _4d-minesweeper

@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jul 18, 2023
@Janik-Haag
Copy link
Member

when starting the game it throws this error in my terminal:

ERROR: Condition "cache_id.size < 1" is true.
   at: _reload_cache (scene/resources/dynamic_font.cpp:908)

@Janik-Haag
Copy link
Member

And the binary is a folder too deep:

./result/bin/4d-minesweeper/4d-minesweeper

it should be

./result/bin/4d-minesweeper

Copy link
Member

@Janik-Haag Janik-Haag left a comment

Choose a reason for hiding this comment

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

Mostly looks good now, but you should add a a desktop file with copyDesktopItems and makeDesktopItem.

@merspieler
Copy link
Contributor Author

How do I do that? Just add it to nativeBuildInputs?

@Janik-Haag
Copy link
Member

just grep for makeDesktopItem and you will find a lot of examples like pkgs/applications/science/logic/key/default.nix

@superherointj
Copy link
Contributor

Eval is failing:

error: evaluation aborted with the following error message: 'Function called without required argument "godot-export-templates" at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-8/pkgs/games/4d-minesweeper/default.nix:10, did you mean "godot3-export-templates"?'

Maybe "godot-export-templates" => "godot3-export-templates"? (I haven't tested.)

@merspieler
Copy link
Contributor Author

did the naming of godot change?

@superherointj
Copy link
Contributor

did the naming of godot change?

My point was pointing out eval failed. I have not digged further. The error suggested that. But I cannot say what is the proper solution. Worth checking which Godot version upstream requires. Then feeding that specific version for both godot engine and templates.

@merspieler
Copy link
Contributor Author

On unstable it did indeed change since we opened the pr, on 23.05 what we use it didn't. Will change and push that.

@superherointj
Copy link
Contributor

superherointj commented Oct 7, 2023

Result of nixpkgs-review pr 244054 run on x86_64-linux 1

1 package failed to build:
  • _4d-minesweeper

Logs: https://termbin.com/9vsi

image

ERROR: Condition "cache_id.size < 1" is true.
   at: _reload_cache (scene/resources/dynamic_font.cpp:908)

ERROR: Prepare Template: The given export path doesn't exist.
   at: add_message (editor/editor_export.h:254)

ERROR: Project export for preset "Linux/X11" failed.
   at: _fs_changed (editor/editor_node.cpp:818)

@merspieler merspieler closed this Oct 7, 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 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments