From 497a1476ae5756bac5453c81f3b3dc13b966f238 Mon Sep 17 00:00:00 2001 From: Russell O'Connor Date: Sun, 31 Oct 2010 04:08:14 +0000 Subject: [PATCH] Dwarf Fortress files in dipscript are again opened in read-write mode and need to be hacked around. It's almost tempting to copy the whole data dirctory and put every file in read-write mode. svn path=/nixpkgs/trunk/; revision=24550 --- pkgs/games/dwarf-fortress/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/games/dwarf-fortress/default.nix b/pkgs/games/dwarf-fortress/default.nix index 20dcd7ad249..b08a70a3982 100644 --- a/pkgs/games/dwarf-fortress/default.nix +++ b/pkgs/games/dwarf-fortress/default.nix @@ -51,9 +51,10 @@ stdenv.mkDerivation rec { ln -s \$i \$DF_DIR/data/ done - # index initial_movies, announcement, and help files are as of 0.31.16 opened in read/write mode instead of read-only mode + # index initial_movies, announcement, dipscript and help files are as of 0.31.16 opened in read/write mode instead of read-only mode # this is a hack to work around this - for i in index initial_movies announcement help + # Should I just apply this to the whole data directory? + for i in index initial_movies announcement dipscript help do rm \$DF_DIR/data/\$i cp -rf $out/share/df_linux/data/\$i \$DF_DIR/data/