From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4H4UMmw6emN6MgAAbAwnHQ (envelope-from ) for ; Sun, 20 Nov 2022 15:32:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id TUrgMWw6emMrUwAAauVa8A (envelope-from ) for ; Sun, 20 Nov 2022 15:32:12 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7FEB21B7D2 for ; Sun, 20 Nov 2022 15:32:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owlMd-0000sX-Uf; Sun, 20 Nov 2022 09:32:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owlMY-0000ri-VH for guix-patches@gnu.org; Sun, 20 Nov 2022 09:32:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owlMY-0001t8-5O for guix-patches@gnu.org; Sun, 20 Nov 2022 09:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owlMY-00069E-1y for guix-patches@gnu.org; Sun, 20 Nov 2022 09:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59410] [PATCH] gnu: Add distrobox. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Nov 2022 14:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59410 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59410@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166895468423586 (code B ref -1); Sun, 20 Nov 2022 14:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Nov 2022 14:31:24 +0000 Received: from localhost ([127.0.0.1]:42806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owlLw-00068L-A3 for submit@debbugs.gnu.org; Sun, 20 Nov 2022 09:31:24 -0500 Received: from lists.gnu.org ([209.51.188.17]:36986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owlLr-00068A-79 for submit@debbugs.gnu.org; Sun, 20 Nov 2022 09:31:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owlLq-0000jk-VZ for guix-patches@gnu.org; Sun, 20 Nov 2022 09:31:19 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owlLd-0000zY-4Q for guix-patches@gnu.org; Sun, 20 Nov 2022 09:31:17 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 664EA40929 for ; Sun, 20 Nov 2022 15:31:02 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FAKbxhecBAUb for ; Sun, 20 Nov 2022 15:31:01 +0100 (CET) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1668954661; bh=wY75YQdB8ckk2BTa04azWWwMGcDqEjqCNXIUj2zFhH0=; h=Date:To:From:Subject:From; b=TTew7jIhrgcvgU+c2SaSxHsbqbPWxNbfIm6Bno8tBGyYM0quHDv+ef9GWic38MwL9 GFUY9rhVQBFWkvVb7E+gC9pIwaHlL7+ajU3BgbqVbpuN2ohqKOXNFYUYMtDM2XckAW di7CpJbZk3+5dC0I5h8wnmvXJXAsD5x46iAF15vierCztsVke+iwnadJESgQW/PEHn lP2LSsao9Qez/30uKdzZUJ/aVzvWJbpbYHfQbLl1apqcLDvOhOSYM8ZRMnQx78SHRr RQL3ZxDz0L8vXKPvdHcv+STYgyhWtXjtmyH7KrNK2NDcy+x/MTEeNrVhq6FKZe19xP MUuISD8bkKPAA== Date: Sun, 20 Nov 2022 22:30:56 +0800 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=adam.faiz@disroot.org; helo=knopi.disroot.org 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, 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: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches From: Adam Faiz via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668954732; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=X8RU2S2I9yoMZ4JKmk+iZskoSufgHbmsP/ddI1lBQhM=; b=K7/opiuX931Fm8BymMYA1Zn5qXGhF2jjWwmmTzUzPPCz9Z/vUjoVL7Udyvlyz8D/ELFs7P h+CIhN2LtDxpTlVPEjBQEquxNfq6q0M2t0I+7+AcNDTWbHhrw/fRm42ItQMOb7dnTogZVV jCRp6Q9E3l1edi97TsN4i7U87zAbGu06imWRbSVCnxf6YIYEl2jKvJjfXz2zLGcdoH5dj/ xGb1ATc//ECFnwBIJ8Fw7YkmVvlYBSEdecOg+6JK/Ob7kH6x1i5zDrB9Kq4Hg1vsDVqQ7r 26EnUaH4Ey4vITW5e9laNd4te+cb7sitaq7q06k+s43IqmUo/HtBdz7/ZXNQIQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668954732; a=rsa-sha256; cv=none; b=o4uvvbMN1uNbxWq772r0VJr9nzf+nrVg4PifYocQ995L9gvW9ORWftAQtbTlt85GE9c5f9 yPO3LmBS35xfJ1RhzVbT3FOwSj/LPCu1VzmhHxQt1sX2YS9bGlrRJj7HpaHD3ALh6N2Ifi WueF13TIhgW1x+tYswEYQCae72GWuCv3uvvr/dKN5XyFO4ZZU27spsdBszg3PLsHruDrYH 2CnGKy00knX0sz6CtPiZmP60AZHgR6hgXgEkJ0N0bYnWNugjUs8t7VrqUfYNhLMkAh8GX7 56x2NKZSUvGqib4z04S61FmlxVuK5VoGWxpia3QwVtPm8D4UgouxP/vuAmW6Kw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=TTew7jIh; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.21 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=TTew7jIh; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7FEB21B7D2 X-Spam-Score: -2.21 X-Migadu-Scanner: scn1.migadu.com X-TUID: KKAOgvWenMdL From 1fc7bf3f3c35490f95e223fef9c83ef7d2501dff Mon Sep 17 00:00:00 2001 From: AwesomeAdam54321 Date: Fri, 18 Nov 2022 10:51:30 +0800 Subject: [PATCH] gnu: Add distrobox. * gnu/packages/containers.scm (distrobox): New variable. --- gnu/packages/containers.scm | 39 ++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index 59eea423a1..384a263e2e 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -26,6 +26,7 @@ (define-module (gnu packages containers) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module (guix build-system meson) @@ -46,7 +47,8 @@ (define-module (gnu packages containers) #:use-module (gnu packages selinux) #:use-module (gnu packages version-control) #:use-module (gnu packages virtualization) - #:use-module (gnu packages web)) + #:use-module (gnu packages web) + #:use-module (gnu packages wget)) (define-public crun (let ((commit "c381048530aa750495cf502ddb7181f2ded5b400")) @@ -354,3 +356,38 @@ (define-public podman volumes mounted into those containers, and pods made from groups of containers.") (license license:asl2.0))) + +(define-public distrobox + (package + (name "distrobox") + (version "1.4.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/89luca89/distrobox") + (commit version))) + (sha256 + (base32 "1qc66ghlq6b0nh4gk8ls64njwv96pkhz0p31k40fnicxwkfnb2jq")) + (file-name (git-file-name name version)))) + (build-system copy-build-system) + (inputs + (list podman wget)) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-before 'install 'refer-to-inputs + (lambda _ + (substitute* (find-files "." "^distrobox.*") + (("podman") (string-append #$(this-package-input "podman") "/bin/podman")) + (("wget") (string-append #$(this-package-input "wget") "/bin/wget")) + (("command -v") "test -x")))) + (replace 'install + (lambda _ + (invoke "./install" "--prefix" #$output)))))) + (home-page "https://distrobox.privatedns.org/") + (synopsis "Fancy wrapper to create and start containers highly integrated with the hosts") + (description + "Distrobox is a fancy wrapper around Podman or Docker +to create and start containers highly integrated with the hosts.") + (license license:gpl3+))) -- 2.38.0