guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 6b30d0db99c2b8fd5cd235515ca7c90ef297d5a7
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Jul 10 10:38:43 2025 +0100

    gnu: Add go-github-com-checkpoint-restore-go-criu.
    
    * gnu/packages/golang-xyz.scm (go-github-com-checkpoint-restore-go-criu-v6,
      go-github-com-checkpoint-restore-go-criu-v7): New variables.
    
    Change-Id: I2b5116458413701ab6e269f26064f6aabdb6c04e
---
 gnu/packages/golang-xyz.scm | 68 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index d04f34b4c1..9c3dda8244 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -3293,6 +3293,74 @@ package provides an API for comparing Golden files.")
      "This package provides the Windows API used at Charmbracelet.")
     (license license:expat)))
 
+(define-public go-github-com-checkpoint-restore-go-criu-v6
+  (package
+    (name "go-github-com-checkpoint-restore-go-criu-v6")
+    (version "6.3.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/checkpoint-restore/go-criu";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0b7427rqf1il6pjbgzdm8vwcxvcf013d5sa13k7fi8pmifqb81dz"))
+       (snippet
+        #~(begin
+            (use-modules (guix build utils))
+            (delete-file-recursively "vendor")))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/checkpoint-restore/go-criu/v6"
+      ;; Failed to get stats.
+      #:test-flags #~(list "-skip" "TestGetDumpStats|TestGetRestoreStats")))
+    (propagated-inputs
+     (list go-github-com-spf13-cobra
+           go-golang-org-x-sys
+           go-google-golang-org-protobuf))
+    (home-page "https://github.com/checkpoint-restore/go-criu";)
+    (synopsis "Go bindings for CRIU")
+    (description
+     "This pacakge provides bindings for @url{https://criu.org/, CRIU}.  The
+code is based on the Go-based PHaul implementation from the CRIU repository.")
+    (license license:asl2.0)))
+
+(define-public go-github-com-checkpoint-restore-go-criu-v7
+  (package
+    (inherit go-github-com-checkpoint-restore-go-criu-v6)
+    (name "go-github-com-checkpoint-restore-go-criu-v7")
+    (version "7.2.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/checkpoint-restore/go-criu";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "07qnlmvdzm7gl3lf2kldm83n2bfqnh6qqlhi43734q0dk5bfhpym"))
+       (snippet
+        #~(begin
+            (use-modules (guix build utils))
+            (delete-file-recursively "vendor")))))
+    (arguments
+     (list
+      #:import-path "github.com/checkpoint-restore/go-criu/v7"
+      #:test-flags
+      #~(list "-skip" (string-join
+                       ;; Error opening binary file: open
+                       ;; test-imgs/pstree.img: no such file or directory.
+                       (list "TestNewMemoryReader"
+                             "TestGetMemPages"
+                             "TestGetPsArgsAndEnvVars"
+                             "TestSearchPattern"
+                             ;; Failed to get stats.
+                             "TestGetDumpStats"
+                             "TestGetRestoreStats")
+                       "|"))))))
+
 (define-public go-github-com-cheggaaa-pb
   (package
     (name "go-github-com-cheggaaa-pb")

Reply via email to