From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: Grue Hunter: Can't create directories in the store Date: Tue, 14 May 2013 23:36:18 +0400 Message-ID: <878v3hgxql.fsf@karetnikov.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcKyP-0008UC-3m for bug-guix@gnu.org; Tue, 14 May 2013 15:33:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcKyL-0000h0-Vw for bug-guix@gnu.org; Tue, 14 May 2013 15:33:21 -0400 Received: from [2a01:7e00::f03c:91ff:fedf:181] (port=36511 helo=cooksoni.karetnikov.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcKyL-0000go-NN for bug-guix@gnu.org; Tue, 14 May 2013 15:33:17 -0400 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 --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= 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've tried several things: 1. (zero? (system (format #f "cp -r . ~a" out))) Pollutes the profile with 'AGPLv3.txt', 'gh.pl', and 'README'. 2. (zero? (system (format #f "mkdir bin ~a/" out))) Creates 'bin', but the output doesn't contain it. 3. (zero? (system (format #f "mkdir bin ~a/" out))) (zero? (system (format #f "cp gh.pl ~a/bin/" out))) Creates a file called 'bin', not a directory. Could anyone explain why? Fails with: cp: cannot create regular file '/nix/store/clwpaljwanw7397qafxv82vj1b8jm82q-grue-hunter-1.0/bin/': Not a directory I'm attaching a recipe and a related patch. [1] http://jxself.org/grue-hunter.shtml --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename=grue-hunter.scm Content-Transfer-Encoding: quoted-printable ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 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"))) ;; (zero? (system (format #f "cp -r . ~a" out))) (zero? (system (format #f "mkdir bin ~a/" out))) (zero? (system (format #f "cp gh.pl ~a/bin/" out))))) (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+))) --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-licenses-Add-agpl3-and-agpl3.patch Content-Transfer-Encoding: quoted-printable From=20436dc3da50aa2a82a7d47930c493ccb73a3accec Mon Sep 17 00:00:00 2001 From: Nikita Karetnikov Date: Tue, 14 May 2013 18:57:42 +0000 Subject: [PATCH] licenses: Add 'agpl3' and 'agpl3+'. * guix/licenses.scm (agpl3, agpl3+): New variables. =2D-- guix/licenses.scm | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/guix/licenses.scm b/guix/licenses.scm index 9c4e177..c0a0e60 100644 =2D-- a/guix/licenses.scm +++ b/guix/licenses.scm @@ -21,6 +21,7 @@ (define-module (guix licenses) #:use-module (srfi srfi-9) #:export (license? license-name license-uri license-comment + agpl3 agpl3+ asl2.0 boost1.0 bsd-2 bsd-3 bsd-4 bsd-style @@ -60,6 +61,16 @@ ;;; ;;; Code: =20 +(define agpl3 + (license "AGPL 3" + "https://gnu.org/licenses/agpl.html" + "https://gnu.org/licenses/why-affero-gpl.html")) + +(define agpl3+ + (license "AGPL 3+" + "https://gnu.org/licenses/agpl.html" + "https://gnu.org/licenses/why-affero-gpl.html")) + (define asl2.0 (license "ASL 2.0" "http://directory.fsf.org/wiki/License:Apache2.0" =2D-=20 1.7.5.4 --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJRkpI3AAoJEM+IQzI9IQ38ImwP/RGq3t4PcE7x7u+NUW8qdCsY nv9xQN1b99Np1Lh4GwBejCIb2V6nVRAmOeFdt74MSGBhVQVSixON/+lWzShSQFVU VlqbVnsPlOMkFu3nv2tRJLSjB7nGEVHcKv2u8ynhjWD4wpHfziwdK6RCmU4gSPfq Ig7Tzf/AZ0NLHGp2TiVZA6RfhD7N8Esv0U/vvr7UOfaJfGsUmMOKnNq7ZkJ2gq98 sV/aPcaJ2nDsg+fu4xFHVRA6WGELmBDaGkITxsntAVm331gQ4oMLrmkF3bsijfux vV0SAK3L4J0gRr9p4uVNEUqgFXY9QSESkce+SPqH4EOk3KxoCftPkhNwHPf2L4aV t0xWguqp0Z1pG40WVWi+kgebOyT/eHYl2H6gu3OeXoyBSjVKYvS4xjTeNyoAQJYs Uf6ZZC4WGd6tMhIyAwScAJd3gn8l21IpCFb1H+BucKTPvP95aMWHOXFn4ztEJxIa FpXeqQ4y+mg9ZVCwXO3awzxlzLpfMrUCE0YIfmIuplV/M35vIY6HTHS1oaSD6aQr X8pwmsjtMyXRLAubD4hEuWYJzMLyEGfi8RCq30g3JBVKs2RttfRfuhDXy+5r6zU5 FtGuDynZ776rRoDwOhZDnZftDwZ4y539g24MCM7HzFV9AuhN7j6UKxfGuLlgBHkz vAIOzvRd7zNWjiLtCEhN =QfI8 -----END PGP SIGNATURE----- --==-=-=--