From d5ed53ceede59fdaf7a7a1222a800a7cb363ab3d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 9 Nov 2025 22:05:02 +0000 Subject: [PATCH] gnu: Add go-github-com-containers-winquit. * gnu/packages/golang-xyz.scm (go-github-com-containers-winquit): New variable. Change-Id: Ia27a6acfcd931f77425901d75befdc281a09cf01 --- gnu/packages/golang-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8eb2b154c7fe492f4bf5d9341c9a5dc02c75806c..062cadb595a48455f0f432bb555ce7e950944e7f 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4959,6 +4959,43 @@ specifying container platforms.") repositories.") (license license:asl2.0))) +(define-public go-github-com-containers-winquit + ;; As it's seen in description, it's a Windows specific package but + ;; gvisor-tap-vsock can't be build if it's absent. + (hidden-package + (package + (name "go-github-com-containers-winquit") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/containers/winquit") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "00kvrjq0jcjvhpdxgcz99r9azm3n0ds43smwc0ss1rxx7jszpjpv")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/containers/winquit")) + (native-inputs + (list go-github-com-onsi-ginkgo-v2 + go-github-com-onsi-gomega)) + (propagated-inputs + (list go-github-com-sirupsen-logrus)) + (home-page "https://github.com/containers/winquit") + (synopsis "Graceful shutdown of Windows applications support for Golang") + (description + "winquit is a golang module that supports graceful shutdown of Windows +applications through the sending and receiving of Windows quit events on Win32 +message queues. This allows golang applications to implement behavior +comparable to SIGTERM signal handling on UNIX derived systems. Additionally, +it supports the graceful shutdown mechanism employed by Windows system tools, +such as @code{taskkill.exe}.") + (license license:asl2.0)))) + (define-public go-github-com-coocood-freecache (package (name "go-github-com-coocood-freecache")