From 7ac03301a766881d741ea001a17bc536407a0d61 Mon Sep 17 00:00:00 2001 From: Florian Friesdorf Date: Mon, 26 Nov 2012 15:24:03 +0100 Subject: [PATCH] xsokoban scorefile in current directory --- pkgs/games/xsokoban/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/games/xsokoban/default.nix b/pkgs/games/xsokoban/default.nix index b8917b4d41c9..bfd2b0f38c01 100644 --- a/pkgs/games/xsokoban/default.nix +++ b/pkgs/games/xsokoban/default.nix @@ -28,8 +28,8 @@ rec { echo '#define OWNER "'$(whoami)'"' >> config.h echo '#define ROOTDIR "'$out/lib/xsokoban'"' >> config.h echo '#define ANYLEVEL 1' >> config.h - echo '#define SCOREFILE "/tmp/.xsokoban-score"' >> config.h - echo '#define LOCKFILE "/tmp/.xsokoban-score-lock"' >> config.h + echo '#define SCOREFILE ".xsokoban-score"' >> config.h + echo '#define LOCKFILE ".xsokoban-score-lock"' >> config.h sed -e 's/getpass[(][^)]*[)]/PASSWORD/' -i main.c sed -e '/if [(]owner[)]/iowner=1;' -i main.c