GNU bug report logs - #59410
[PATCH] gnu: Add distrobox.

Previous Next

Package: guix-patches;

Reported by: Adam Faiz <adam.faiz <at> disroot.org>

Date: Sun, 20 Nov 2022 14:32:01 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Adam Faiz <adam.faiz <at> disroot.org>
Subject: bug#59410: closed (Re: [bug#59410] [PATCH] gnu: Add distrobox.)
Date: Fri, 03 Feb 2023 23:17:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#59410: [PATCH] gnu: Add distrobox.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 59410 <at> debbugs.gnu.org.

-- 
59410: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59410
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Adam Faiz via Guix-patches via <guix-patches <at> gnu.org>
Cc: Adam Faiz <adam.faiz <at> disroot.org>, 59410-done <at> debbugs.gnu.org
Subject: Re: [bug#59410] [PATCH] gnu: Add distrobox.
Date: Sat, 04 Feb 2023 00:16:04 +0100
Hello,

Adam Faiz via Guix-patches via <guix-patches <at> gnu.org> writes:

> Subject: [PATCH] gnu: Add distrobox.

Applied with the changes below. Thank you.

> +(define-public distrobox
> +  (package
> +    (name "distrobox")
> +    (version "1.4.1")

I updated it to latest version.

> +    (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"))

I used `search-input-file' instead of `this-package-input'.

> +    (license license:gpl3+)))

License seems to be GPL3 only, so I changed it.

Regards,
-- 
Nicolas Goaziou

[Message part 3 (message/rfc822, inline)]
From: Adam Faiz <adam.faiz <at> disroot.org>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add distrobox.
Date: Sun, 20 Nov 2022 22:30:56 +0800
From 1fc7bf3f3c35490f95e223fef9c83ef7d2501dff Mon Sep 17 00:00:00 2001
From: AwesomeAdam54321 <adam.faiz <at> disroot.org>
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



This bug report was last modified 2 years and 167 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.