From patchwork Sat Jan 16 22:16:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 26431 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A473D27BC14; Sat, 16 Jan 2021 22:22:40 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2E56027BC13 for ; Sat, 16 Jan 2021 22:22:40 +0000 (GMT) Received: from localhost ([::1]:43374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0txv-0004ze-DB for patchwork@mira.cbaines.net; Sat, 16 Jan 2021 17:22:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0ttS-0001sh-SM for guix-patches@gnu.org; Sat, 16 Jan 2021 17:18:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60899) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l0ttS-0000Ue-Ky for guix-patches@gnu.org; Sat, 16 Jan 2021 17:18:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l0ttS-0001bX-Gv for guix-patches@gnu.org; Sat, 16 Jan 2021 17:18:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45921] [PATCH] New gnu/packages/lisp.scm buildapp Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 16 Jan 2021 22:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45921 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45921@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16108354236102 (code B ref -1); Sat, 16 Jan 2021 22:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jan 2021 22:17:03 +0000 Received: from localhost ([127.0.0.1]:44212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l0tsV-0001aM-FH for submit@debbugs.gnu.org; Sat, 16 Jan 2021 17:17:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:56578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l0tsT-0001Zu-CA for submit@debbugs.gnu.org; Sat, 16 Jan 2021 17:17:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0tsS-0001AB-TR for guix-patches@gnu.org; Sat, 16 Jan 2021 17:17:01 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:52185) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l0tsQ-0000Ah-Su for guix-patches@gnu.org; Sat, 16 Jan 2021 17:17:00 -0500 Received: by mail-wm1-x331.google.com with SMTP id h17so10172712wmq.1 for ; Sat, 16 Jan 2021 14:16:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=PwYO13S9pTli25jexMMXKcc1DtdRV3xTVnuo+yv/57k=; b=Z6vM7umIPkqFvroZ8ofM1ReviEti6gP0jEMp5rX/4LYipqO62D4Q2lVRV9mc+N2ocR cesE82Ihrszowyq/2Sx0Hg3Wn42v58uEe5X9S6JGseCZIRewj6Qi9sjFBVAQ4hA3wyJm 8RXc/0a7AUKBeZxXd2u459l8HCXsoRdewqQv5G+/H4izCugD+iIAE7pAFSfh4x8Ley1T beRuoH84yBWNUZxybRZdbOsY7bqFAlbRMcKt9UBqXNcYVyXYnoIX0VRsaNep4pjnzJA1 tkSqmPGciw0BzIUMzDzqd7MNgIrEaS+14EiigyQ2EYwdRVQhnh04A4//2YByacfN8bK9 v6/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=PwYO13S9pTli25jexMMXKcc1DtdRV3xTVnuo+yv/57k=; b=ONWQbJ4FrBsh/lXFlm9vOzBc/J2VOMyp4Lk9lQObRntefqm2JxO7oAoXDRnjCsw78g eHTEPhYRptNMqGJCR/ZuY634tLK9+AURdx05YSJrXBoYNKexm2Fsn4u+JIvmHMz/sQJ7 WRsius2oNu6A3JDRcGq4KqwfsvN3y6akAdyVUZoBk41u/0Hw/J8RR2PFzfP5egCHNzCZ qzdnEBjuEsk1IiyPZ2L5r7YvfvyQnCMUxK+zpERCoteVEByXo9k0sLoICPz41i7ELYqZ OaRy/7s9jsGnWaBvt9u7yLKvxQkyeeeUGVwfWwZ/PPEry8SBCbgZxniwM9M2krTZaAxT nWdw== X-Gm-Message-State: AOAM532opAI5JSgpfHlLw2OlyE3/v88k7Jw4BkVXm/j5+8Z6MZBIEUlw iB8wqzBba1bo0JxppZpKgVYCLl5N6Cpa1IveBCSGoyxG X-Google-Smtp-Source: ABdhPJw7y5UhEfks7AWZhzxn889yI6VXstGLBcfDLHCrQHpzZ8L6AlQ3Csr48Z6FEb1uPIm9yFDTrgunJ+eLVGZ3LR4= X-Received: by 2002:a1c:545d:: with SMTP id p29mr2436370wmi.2.1610835415404; Sat, 16 Jan 2021 14:16:55 -0800 (PST) MIME-Version: 1.0 From: Sharlatan Hellseher Date: Sat, 16 Jan 2021 22:16:44 +0000 Message-ID: Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=sharlatanus@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello Guix team! `pgloader` uses `buildapp` to produce binary, so here is a patch to make it available. I've placed it to lisp.scm and not lisp-xyz.sxm as it's not ASDF system but stand alone binary build with itself and ASDF+SBCL From 3b1f12cb045bdc41f50d42415423a5f4f232e131 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 16 Jan 2021 22:11:16 +0000 Subject: [PATCH] Add buildapp * gnu/packages/lisp.scm (buildapp) new variable --- gnu/packages/lisp.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index e357aad4e0..c8ab6bbbdb 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -17,6 +17,7 @@ ;;; Copyright © 2019, 2020 Guillaume Le Vaillant ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Zhu Zihao +;;; Copyright © 2021 Sharlatan Hellseher ;;; ;;; This file is part of GNU Guix. ;;; @@ -1126,3 +1127,42 @@ and make for REPLs that start blazing fast. @item It allows you to include arbitrary libraries. @end itemize\n") (license license:gpl3+))) + +(define-public buildapp + (package + (name "buildapp") + (version "1.5.6") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xach/buildapp") + (commit (string-append "release-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "020ipjfqa3l8skd97cj5kq837wgpj28ygfxnkv64cnjrlbnzh161")))) + (build-system gnu-build-system) + (native-inputs + `(("sbcl" ,sbcl))) + (arguments + `(#:tests? #f + #:make-flags + (list (string-append "DESTDIR=" (assoc-ref %outputs "out"))) + #:strip-binaries? #f + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'set-home + (lambda _ + (setenv "HOME" "/tmp") #t)) + (add-before 'install 'create-target-directory + (lambda* (#:key outputs #:allow-other-keys) + (let* ((bin (string-append (assoc-ref outputs "out") "/bin"))) + (mkdir-p bin) + #t)))))) + (home-page "https://www.xach.com/lisp/buildapp/") + (synopsis "Makes easy to build application executables with SBCL") + (description + "Buildapp is an application for SBCL or CCL that configures and saves an +executable Common Lisp image. It is similar to cl-launch and hu.dwim.build. ") + (license license:bsd-2))) -- 2.30.0