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

infra-arcana: init at unstable-2019-04-22 #61360

Closed
wants to merge 2 commits into from

Conversation

lightbulbjim
Copy link
Contributor

Motivation for this change

Adding new game package.

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 nix-review --run "nix-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)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@lightbulbjim
Copy link
Contributor Author

lightbulbjim commented May 12, 2019

@GrahamcOfBorg build infra-arcana
Not sure if I have access...

pkgs/games/infra-arcana/default.nix Outdated Show resolved Hide resolved
pkgs/games/infra-arcana/release-date.patch Outdated Show resolved Hide resolved
pkgs/games/infra-arcana/default.nix Show resolved Hide resolved
pkgs/games/infra-arcana/release-date.patch Outdated Show resolved Hide resolved
$iconPath/infra-arcana.png
i=$((i+1))
done

Copy link
Contributor

Choose a reason for hiding this comment

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

it looks like this package need missing dependency hicolor-icon-theme .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed on IRC I'll submit a patch to include PNG icons to the upstream project. I'll update this PR once done.

@bignaux
Copy link
Contributor

bignaux commented May 13, 2019

Please, add yourself to the maintainer list in a separate commit.

@bignaux
Copy link
Contributor

bignaux commented May 13, 2019

@GrahamcOfBorg build infra-arcana

@lightbulbjim
Copy link
Contributor Author

Please, add yourself to the maintainer list in a separate commit.

Should it be in a separate PR or just a separate commit in this PR?

@bignaux
Copy link
Contributor

bignaux commented May 13, 2019

A seperate commit on this PR would be fine.

@bignaux
Copy link
Contributor

bignaux commented May 13, 2019

cc-by-nc-30 = spdx {
spdxId = "CC-BY-NC-3.0";
fullName = "Creative Commons Attribution Non Commercial 3.0 Unported";
free = false;
};

so it seems bot won't test it. Thanks for contributing.

@lightbulbjim
Copy link
Contributor Author

A seperate commit on this PR would be fine.

Done :)

@lightbulbjim
Copy link
Contributor Author

cc-by-nc-30 = spdx {
spdxId = "CC-BY-NC-3.0";
fullName = "Creative Commons Attribution Non Commercial 3.0 Unported";
free = false;
};

so it seems bot won't test it. Thanks for contributing.

Does that mean we can't proceed?

@bignaux
Copy link
Contributor

bignaux commented May 13, 2019

No, that only mean i don't :)

Small tweaks applied:
  - PNG XDG icons extracted from the provided ICO icon.
  - XDG .desktop file generated.

Note that this application doesn't follow FHS layout.
@lightbulbjim lightbulbjim changed the title infra-arcana: init at 19.2 infra-arcana: init at unstable-2019-04-22 May 13, 2019
@lightbulbjim
Copy link
Contributor Author

Well, after the earlier IRC discussion I ended up changing this to track master instead of the stable version, since there are many improvements. The developer lists master as the intended GA version on his website, so this is a supported way of running. The build process has changed since the last stable release.

I'm still using graphicsmagick to generate the PNG icons, which I will work to fix upstream.

I've discovered a bigger problem, however. The game expects the user directory to be writable for storing save files, preferences etc. There's no provision for having this directory exist per-user at all. This is a bigger thing to fix - basically adding XDG user directory support. I may look into working on this, but I'll need to talk to the developer to see if he's even interested first.

I guess this PR should be closed for now, and I can reopen it if/when the upstream changes have happened?

@bignaux
Copy link
Contributor

bignaux commented May 13, 2019

I think you can just let the PR opened. Btw, could be easiest to do a small substitutioninplace with a getenv(XDG_CONFIG_HOME) ( look i'm also do such thing for stuff i package ColinPitrat/caprice32#137 ) . If you can point me where is the path, i'll have a look.

@lightbulbjim
Copy link
Contributor Author

The user directory is defined here: https://gitlab.com/martin-tornqvist/ia/blob/38f192f1d5b3d20739074c35b5b2a70d997ea3a0/src/paths.cpp#L25

Thanks for the link, I'll have a look at how it's implemented there (and with other projects) to get some ideas.

@lightbulbjim
Copy link
Contributor Author

Pull request to fix the user directory submitted: https://gitlab.com/martin-tornqvist/ia/merge_requests/210

I won't include it as a patch just yet as it needs a little work. Once it's ready I'll add it to the derivation.

Icon patch is still TODO.

@lightbulbjim
Copy link
Contributor Author

Not sure if that patch is going to go anywhere or not. I'll close this PR for now so it's not adding to the clutter, and re-open it if things start moving.

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

2 participants