-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
hyperrogue: 13.0v -> 13.0w #367624
hyperrogue: 13.0v -> 13.0w #367624
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please:
- Remove the
with lib;
in themeta
attrs - Add
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
after the installPhase
.
- Add
passthru = {
updateScript = nix-update-script { };
};
just above meta
.
- Add
changelog = "https://github.com/zenorogue/hyperrogue/releases/tag/v${version}";
in meta
- Remove the "A " from
meta.description
(https://nixos.org/manual/nixpkgs/unstable/#var-meta-description) - Re-order the
meta
attrs:description
homepage
changelog
- (the rest)
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "hyperrogue"; | ||
version = "13.0v"; | ||
version = "13.0w"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "zenorogue"; | ||
repo = "hyperrogue"; | ||
rev = "v${version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rev = "v${version}"; | |
tag = "v${version}"; |
|
Suggestions applied. :) |
makeDesktopItem, | ||
fontconfig, | ||
versionCheckHook, | ||
nix-update-script, | ||
}: | ||
|
||
stdenv.mkDerivation rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stdenv.mkDerivation rec { | |
stdenv.mkDerivation (finalAttrs: { |
|
||
src = fetchFromGitHub { | ||
owner = "zenorogue"; | ||
repo = "hyperrogue"; | ||
rev = "v${version}"; | ||
sha256 = "sha256-bH5dnXLWU2D6Y70u7Cy2vqsli1GhID9af4J+21NSPHk="; | ||
tag = "v${version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tag = "v${version}"; | |
tag = "v${finalAttrs.version}"; |
homepage = "https://www.roguetemple.com/z/hyper/"; | ||
description = "A roguelike game set in hyperbolic geometry"; | ||
changelog = "https://github.com/zenorogue/hyperrogue/releases/tag/v${version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changelog = "https://github.com/zenorogue/hyperrogue/releases/tag/v${version}"; | |
changelog = "https://github.com/zenorogue/hyperrogue/releases/tag/v${finalAttrs.version}"; |
|
Are you sure that this game is compatible with darwin ?
|
Also, it might just not be possible to start the game in the sandbox on darwin. |
It does have a binary for macos on https://zenorogue.itch.io/hyperrogue so I thought darwin is supported. But I don't have a mac to fix it. 🤷 |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Builds and plays for me on my mac. Might just be a sandbox issue.
Thanks a lot for testing :) |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks all !
Closes #367519
Fix font not found error.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.