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

keeperrl: init at alpha24 #43409

Closed
wants to merge 1 commit into from
Closed

keeperrl: init at alpha24 #43409

wants to merge 1 commit into from

Conversation

rardiol
Copy link
Contributor

@rardiol rardiol commented Jul 12, 2018

Motivation for this change
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 nox --run "nox-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)
  • Fits CONTRIBUTING.md.

Is the version name ok?

Does someone have a cleaner way to deal with a program that thinks it always runs with write permission on the compilation dir? miki151/keeperrl#376

I think that you can just put the data folder for the paid version on ~/.keeperrl, in case someone can test this.

CFLAGS = "-I${SDL2.dev}/include/SDL2";

installPhase = ''
mkdir -p $out/keeperrl
Copy link
Member

Choose a reason for hiding this comment

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

Should store data files in $out/share/keeperrl instead. And you can use a single line:

mkdir -p $out/share/keeperrl $out/bin

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Thanks.


makeFlags = [ "OPT=true" "RELEASE=true" ];

CFLAGS = "-I${SDL2.dev}/include/SDL2";
Copy link
Member

Choose a reason for hiding this comment

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

What error is there when you remove this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

g++ -MMD -Wall -std=c++1y -Wno-sign-compare -Wno-unused-variable -Wno-shift-count-overflow -Wno-tautological-constant-out-of-range-compare -Wno-mismatched-tags -ftemplate-depth=512 -DDATA_DIR=\"ATA_DIR\" -DRELEASE -O3 -I. -I./extern  -c animation.cpp -o obj-opt/animation.o
In file included from sdl.h:11,
                 from renderer.h:19,
                 from animation.cpp:5:
/nix/store/9rgym24jflmh4lqw0xhv752xjhwai7yj-SDL2_image-2.0.5/include/SDL2/SDL_image.h:27:10: fatal error: SDL.h: No such file or directory
 #include "SDL.h"

--run "rm data_free || true" \
--run "rm data_contrib || true" \
--run "ln -s $out/keeperrl/data_free ." \
--run "ln -s $out/keeperrl/data_contrib ."
Copy link
Member

Choose a reason for hiding this comment

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

I don't think these hacks are needed anymore. See miki151/keeperrl#376 (comment) and miki151/keeperrl#568

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed it for both DATA_DIR and USER_DIR. I just wonder where should be a note somewhere for users explaining what to do if they have the paid data dir.

@mmahut
Copy link
Member

mmahut commented Aug 3, 2019

What is the status of this pull request?

@rardiol rardiol mentioned this pull request Oct 26, 2019
10 tasks
@rardiol
Copy link
Contributor Author

rardiol commented Oct 26, 2019

I deleted my fork and recreated it so I don't think I can fix this PR, so I opened another: #43409

@rardiol rardiol closed this Oct 26, 2019
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

4 participants