From a280a341525adb9b30133a754319d55895cd28a9 Mon Sep 17 00:00:00 2001 From: qby <5731587-qby@users.noreply.gitlab.com> Date: Wed, 17 Jan 2024 18:43:52 +0000 Subject: [PATCH 1/6] Don't hesitate editing and commenting --- nongnu/packages/anonsurf-parrot | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 nongnu/packages/anonsurf-parrot diff --git a/nongnu/packages/anonsurf-parrot b/nongnu/packages/anonsurf-parrot new file mode 100644 index 00000000..8f472ab0 --- /dev/null +++ b/nongnu/packages/anonsurf-parrot @@ -0,0 +1,29 @@ +(define-module (my-packages anonsurf) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module (guix build-system gnu)) + +(define-public anonsurf + (package + (name "anonsurf") + (version version) ;; Insert the appropriate version number + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ParrotSec/anonsurf") + (commit version))) + (file-name (string-append name "-" version)) + (sha256 + (base32 + hash)))) ;; Update SHA256 hash + (build-system gnu-build-system) + (arguments `(#:phases + (modify-phases %standard-phases + (add-before 'configure 'pre-configure + (lambda _ + (invoke "make") + #t))))) + (home-page "https://github.com/ParrotSec/anonsurf") + (synopsis "Parrot AnonSurf Module") + (description "AnonSurf is a script designed to start TOR and set the iptables properly to prevent traffic from passing outside the TOR network.") + (license license:license))) ;; Update the license if different From 3a2113aa60cd75c0261717df9a2681370971a280 Mon Sep 17 00:00:00 2001 From: qby <5731587-qby@users.noreply.gitlab.com> Date: Thu, 18 Jan 2024 18:45:57 +0000 Subject: [PATCH 2/6] Add new file --- nongnu/packages/docker-osx-ventura.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 nongnu/packages/docker-osx-ventura.scm diff --git a/nongnu/packages/docker-osx-ventura.scm b/nongnu/packages/docker-osx-ventura.scm new file mode 100644 index 00000000..7d5403f1 --- /dev/null +++ b/nongnu/packages/docker-osx-ventura.scm @@ -0,0 +1,10 @@ +docker run -it \ + --device /dev/kvm \ + -p 50922:10022 \ + -v /tmp/.X11-unix:/tmp/.X11-unix \ + -e "DISPLAY=${DISPLAY:-:0.0}" \ + -e GENERATE_UNIQUE=true \ + -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \ + sickcodes/docker-osx:ventura + +# docker build -t docker-osx --build-arg SHORTNAME=ventura . From 16200aa3d4d0c85a734f9eabe1e74d760d4dccb4 Mon Sep 17 00:00:00 2001 From: qby <5731587-qby@users.noreply.gitlab.com> Date: Thu, 18 Jan 2024 18:51:17 +0000 Subject: [PATCH 3/6] PodManize and build --- nongnu/packages/docker-osx-ventura.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nongnu/packages/docker-osx-ventura.scm b/nongnu/packages/docker-osx-ventura.scm index 7d5403f1..de9379a4 100644 --- a/nongnu/packages/docker-osx-ventura.scm +++ b/nongnu/packages/docker-osx-ventura.scm @@ -1,4 +1,4 @@ -docker run -it \ +podman run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ @@ -7,4 +7,4 @@ docker run -it \ -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \ sickcodes/docker-osx:ventura -# docker build -t docker-osx --build-arg SHORTNAME=ventura . +podman build -t docker-osx --build-arg SHORTNAME=ventura . From 493b87fce52327315345d5733e1bb50e1a26e85a Mon Sep 17 00:00:00 2001 From: qby <5731587-qby@users.noreply.gitlab.com> Date: Thu, 18 Jan 2024 19:12:36 +0000 Subject: [PATCH 4/6] Guixize --- nongnu/packages/docker-osx-ventura.scm | 31 +++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/nongnu/packages/docker-osx-ventura.scm b/nongnu/packages/docker-osx-ventura.scm index de9379a4..be64fd99 100644 --- a/nongnu/packages/docker-osx-ventura.scm +++ b/nongnu/packages/docker-osx-ventura.scm @@ -1,10 +1,35 @@ -podman run -it \ +(define-module (my-packages example) + #:use-module (guix) + #:use-module (guix build-system trivial)) + +(define-public example + (package + (name "Docker-OSX") + (version "1.0") + (source (origin + (method url-fetch) + (uri "github") + (sha256 (base32 + hash)))) + (build-system trivial-build-system) + (arguments + `(#:builder + (begin + (use-modules (guix build utils)) + + (let* ((out (assoc-ref %outputs "out"))) + (system* "bash" "-c" "podman run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ -e GENERATE_UNIQUE=true \ -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \ - sickcodes/docker-osx:ventura + sickcodes/docker-osx:ventura") + (system* "bash" "-c" "podman build -t docker-osx --build-arg SHORTNAME=ventura .") + + ;; The trivial builder must create the output directory + (mkdir out)))))) + + -podman build -t docker-osx --build-arg SHORTNAME=ventura . From f8c185bb291022414c6d868925192e2ffa485b3f Mon Sep 17 00:00:00 2001 From: qby <5731587-qby@users.noreply.gitlab.com> Date: Wed, 24 Jan 2024 18:08:57 +0000 Subject: [PATCH 5/6] Adding extension --- nongnu/packages/{anonsurf-parrot => anonsurf-parrot.scm} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename nongnu/packages/{anonsurf-parrot => anonsurf-parrot.scm} (100%) diff --git a/nongnu/packages/anonsurf-parrot b/nongnu/packages/anonsurf-parrot.scm similarity index 100% rename from nongnu/packages/anonsurf-parrot rename to nongnu/packages/anonsurf-parrot.scm From e3cd0248aa531cdd4ded935dc066ff90125d92d7 Mon Sep 17 00:00:00 2001 From: qby <5731587-qby@users.noreply.gitlab.com> Date: Tue, 12 Mar 2024 15:23:27 +0000 Subject: [PATCH 6/6] Adding module name --- nongnu/packages/docker-osx-ventura.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nongnu/packages/docker-osx-ventura.scm b/nongnu/packages/docker-osx-ventura.scm index be64fd99..a8d48761 100644 --- a/nongnu/packages/docker-osx-ventura.scm +++ b/nongnu/packages/docker-osx-ventura.scm @@ -1,4 +1,4 @@ -(define-module (my-packages example) +(define-module (my-packages dockerosx) #:use-module (guix) #:use-module (guix build-system trivial))