gnu: Add go-github-com-moby-sys-mountinfo.

* gnu/packages/golang-xyz.scm (go-github-com-moby-sys-mountinfo): New variable.

Change-Id: Iff74f93a6c5e343b1cd0a67a8b50867ad1467546
This commit is contained in:
Sharlatan Hellseher 2024-12-19 12:13:22 +00:00
parent 8d020914ef
commit 41b415a736
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -6901,6 +6901,39 @@ (define-public go-github-com-mitchellh-mapstructure
(description "Go library for decoding generic map values")
(license license:expat)))
(define-public go-github-com-moby-sys-mountinfo
(package
(name "go-github-com-moby-sys-mountinfo")
(version "0.7.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/moby/sys")
(commit (go-version->git-ref version
#:subdir "mountinfo"))))
(file-name (git-file-name name version))
(sha256
(base32 "1i1phx1kk9qa4jf1i1nl23d3f6k9fn2w46274cl76cqw9hjqg868"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/moby/sys/mountinfo"
#:unpack-path "github.com/moby/sys"
#:test-flags
#~(list "-skip" (string-join
(list "TestMountedBy/not_mounted_socket"
"TestMountedBy/socket_bind-mounted_to_itself")
"|"))))
(propagated-inputs (list go-golang-org-x-sys))
(home-page "https://github.com/moby/sys")
(synopsis "Retrieve information about OS mounts")
(description
"Package mountinfo provides a set of functions to retrieve information
about OS mounts as seen by the current process is available from
@code{/proc/self/mountinfo}.")
(license license:asl2.0)))
(define-public go-github-com-moby-sys-userns
(package
(name "go-github-com-moby-sys-userns")