From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 20 09:31:24 2022 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 To: guix-patches@gnu.org From: Adam Faiz Subject: [PATCH] gnu: Add distrobox. 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-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) 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