From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: Can we package NetHack? Date: Sun, 29 May 2016 20:37:02 -0400 Message-ID: References: <20160528164157.72c42344@openmailbox.org> <87oa7otswj.fsf@gnu.org> <20160529185431.58fa5d51@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7BCb-0005vY-CH for guix-devel@gnu.org; Sun, 29 May 2016 20:37:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7BCZ-0000Zc-6l for guix-devel@gnu.org; Sun, 29 May 2016 20:37:04 -0400 Received: from mail-yw0-x22a.google.com ([2607:f8b0:4002:c05::22a]:34791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7BCY-0000ZR-Ui for guix-devel@gnu.org; Sun, 29 May 2016 20:37:03 -0400 Received: by mail-yw0-x22a.google.com with SMTP id c127so150860580ywb.1 for ; Sun, 29 May 2016 17:37:02 -0700 (PDT) In-Reply-To: <20160529185431.58fa5d51@openmailbox.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Kei Kebreau Cc: guix-devel On Sun, May 29, 2016 at 6:54 PM, Kei Kebreau wrote: > On Mon, 30 May 2016 00:13:00 +0200 > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> Kei Kebreau skribis: >> >> > NetHack tries to modify its state files in the store and none of its >> > easily patchable directory variables allow anything different. >> > NetHack also doesn't allow a ~/.nethack directory to be created in >> > the user's directory upon running. Does anyone have any ideas or >> > other packages that do this sort of thing? >> >> I suppose the state files are essentially score files? Don=E2=80=99t ot= her >> games store things in /var/lib/something? What do other distros do? >> :-) >> >> Ludo=E2=80=99. > > Yes, the state files are high score lists, locks for the world files > and such. The problem is that other distros give NetHack a directory to > write those files to that would be equivalent to writing to our store. > The only one I have seen that avoids this is NixOS. However, NixOS > creates a ".nethack" directory within the user's folder (among other > things) to work around this. > > I thought that this would be a problem for Guix, because installing and > removing NetHack cleanly would necessitate directly writing to and > erasing files within the user's directory. So I decided to mail the > list to see if anyone could find a solution. :-) This isn't a problem. Stateful files in home directories or elsewhere are not managed by Guix. A .nethack directory sounds like a fine solution to me. - Dave