From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: Re: Grue Hunter: Can't create directories in the store Date: Wed, 15 May 2013 02:59:29 +0200 Message-ID: <5192DDF1.1090207@gmail.com> References: <878v3hgxql.fsf@karetnikov.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090803000105040300020206" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcQJX-0000Mw-0g for bug-guix@gnu.org; Tue, 14 May 2013 21:15:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcQJU-0000DI-0y for bug-guix@gnu.org; Tue, 14 May 2013 21:15:30 -0400 Received: from mail-we0-x229.google.com ([2a00:1450:400c:c03::229]:39427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcQJT-0000DC-R5 for bug-guix@gnu.org; Tue, 14 May 2013 21:15:27 -0400 Received: by mail-we0-f169.google.com with SMTP id x54so1119797wes.0 for ; Tue, 14 May 2013 18:15:26 -0700 (PDT) Received: from [192.168.0.10] (tal33-3-82-233-82-24.fbx.proxad.net. [82.233.82.24]) by mx.google.com with ESMTPSA id ff10sm754040wib.10.2013.05.14.18.15.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 May 2013 18:15:25 -0700 (PDT) In-Reply-To: <878v3hgxql.fsf@karetnikov.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: bug-guix@gnu.org This is a multi-part message in MIME format. --------------090803000105040300020206 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 05/14/2013 09:36 PM, Nikita Karetnikov wrote: > I'm trying to package Grue Hunter [1]. > > The game is just a single Perl file. What directories should be created > in the store? And how can I create such directories? > I think you want to use mkdir/mkdir-p and copy-file. See the attached recipe. Cyril Roelandt. --------------090803000105040300020206 Content-Type: text/x-scheme; name="grue-hunter.scm" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="grue-hunter.scm" ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013 Nikita Karetnikov ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages grue-hunter) #:use-module (guix licenses) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (gnu packages perl)) (define-public grue-hunter (package (name "grue-hunter") (version "1.0") (source (origin (method url-fetch) (uri (string-append "http://jxself.org/" name ".tar.gz")) (sha256 (base32 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3")))) (build-system gnu-build-system) ; no Makefile.PL (arguments `(#:modules ((guix build gnu-build-system) (guix build utils) (srfi srfi-1)) #:phases (alist-replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (bin (string-append out "/bin"))) (mkdir-p bin) (copy-file "gh.pl" (string-append bin "/grue-hunter")) #t)) (alist-delete 'configure (alist-delete 'patch-generated-file-shebangs (alist-delete 'build (alist-delete 'check (alist-delete 'patch-shebangs (alist-delete 'strip %standard-phases))))))) #:tests? #f)) ; no test target (inputs `(("perl" ,perl))) (home-page "http://jxself.org/grue-hunter.shtml") (synopsis "Text adventure game") (description "Grue Hunter is a text adventure game written in Perl. You must make your way through an underground cave system in search of the Grue. Can you capture it and get out alive?") (license agpl3+))) --------------090803000105040300020206--