summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/golang-xyz.scm42
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 74c16edc321..ea58ebc6186 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -22080,6 +22080,48 @@ capabilities. It's a maintained fork of
22080https://github.com/syndtr/gocapability.") 22080https://github.com/syndtr/gocapability.")
22081 (license license:bsd-2))) 22081 (license license:bsd-2)))
22082 22082
22083(define-public go-github-com-moby-sys-devices
22084 (package
22085 (name "go-github-com-moby-sys-devices")
22086 (version "0.1.0")
22087 (source
22088 (origin
22089 (method git-fetch)
22090 (uri (git-reference
22091 (url "https://github.com/moby/sys")
22092 (commit (go-version->git-ref version #:subdir "devices"))))
22093 (file-name (git-file-name name version))
22094 (sha256
22095 (base32 "0r3dcyw3snklr40z09rzyx9pva8lic1h5wqrv222l0b4dm08d3ny"))
22096 (modules '((guix build utils)
22097 (ice-9 ftw)
22098 (srfi srfi-26)))
22099 (snippet
22100 #~(begin
22101 (define (delete-all-but directory . preserve)
22102 (with-directory-excursion directory
22103 (let* ((pred (negate (cut member <>
22104 (cons* "." ".." preserve))))
22105 (items (scandir "." pred)))
22106 (for-each (cut delete-file-recursively <>) items))))
22107 (delete-all-but "." "devices")))))
22108 (build-system go-build-system)
22109 (arguments
22110 (list
22111 #:import-path "github.com/moby/sys/devices"
22112 #:unpack-path "github.com/moby/sys"))
22113 (propagated-inputs
22114 (list go-github-com-opencontainers-cgroups
22115 go-golang-org-x-sys))
22116 (home-page "https://github.com/moby/sys")
22117 (synopsis
22118 "Helper functions for constructing device configurations for runc")
22119 (description
22120 "Package devices provides some helper functions for constructing device
22121configurations for runc. These are exclusively used by higher-level runtimes
22122that need to configure runc's device list based on existing devices.")
22123 (license license:asl2.0)))
22124
22083(define-public go-github-com-moby-sys-mount 22125(define-public go-github-com-moby-sys-mount
22084 (package 22126 (package
22085 (name "go-github-com-moby-sys-mount") 22127 (name "go-github-com-moby-sys-mount")