Merge pull request #3886 from AndersonTorres/higan
Higan - a quick&dirty workaround
This commit is contained in:
commit
3f1ce8d864
@ -18,3 +18,18 @@ install -m 644 ananke/libananke.so $out/lib/libananke.so.1
|
|||||||
(cd $out/lib && ln -s libananke.so.1 libananke.so)
|
(cd $out/lib && ln -s libananke.so.1 libananke.so)
|
||||||
oldRPath=$(patchelf --print-rpath $out/bin/higan)
|
oldRPath=$(patchelf --print-rpath $out/bin/higan)
|
||||||
patchelf --set-rpath $oldRPath:$out/lib $out/bin/higan
|
patchelf --set-rpath $oldRPath:$out/lib $out/bin/higan
|
||||||
|
|
||||||
|
# A dirty workaround, suggested by @cpages:
|
||||||
|
# we create a first-run script to populate
|
||||||
|
# the local $HOME with all the auxiliary
|
||||||
|
# stuff needed by higan at runtime
|
||||||
|
|
||||||
|
cat <<EOF > $out/bin/higan-config.sh
|
||||||
|
#!${shell}
|
||||||
|
|
||||||
|
cp --update --recursive $out/share/higan \$HOME/.config
|
||||||
|
chmod --recursive u+w \$HOME/.config/higan
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x $out/bin/higan-config.sh
|
||||||
|
@ -44,5 +44,6 @@ stdenv.mkDerivation rec {
|
|||||||
# TODO:
|
# TODO:
|
||||||
# - options to choose profiles (accuracy, balanced, performance)
|
# - options to choose profiles (accuracy, balanced, performance)
|
||||||
# and different GUIs (gtk2, qt4)
|
# and different GUIs (gtk2, qt4)
|
||||||
# - fix the BML and BIOS paths - maybe a custom patch to Higan project?
|
# - fix the BML and BIOS paths - maybe submitting
|
||||||
|
# a custom patch to Higan project would not be a bad idea...
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user