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
keeperrl: init at alpha24 #43409
Conversation
CFLAGS = "-I${SDL2.dev}/include/SDL2"; | ||
|
||
installPhase = '' | ||
mkdir -p $out/keeperrl |
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.
Should store data files in $out/share/keeperrl
instead. And you can use a single line:
mkdir -p $out/share/keeperrl $out/bin
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.
Done. Thanks.
|
||
makeFlags = [ "OPT=true" "RELEASE=true" ]; | ||
|
||
CFLAGS = "-I${SDL2.dev}/include/SDL2"; |
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.
What error is there when you remove this line?
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.
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 ." |
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.
I don't think these hacks are needed anymore. See miki151/keeperrl#376 (comment) and miki151/keeperrl#568
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.
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.
What is the status of this pull request? |
I deleted my fork and recreated it so I don't think I can fix this PR, so I opened another: #43409 |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)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.