diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-06-17 21:25:15 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-06-17 23:31:25 +0100 |
| commit | 11957f99d996a4eea09234c9072bdf4124f137e8 (patch) | |
| tree | eebad5b38d543809f7958ca496f7b780458f79f2 /gnu | |
| parent | b59f2025606e53892afdb87732f20437637e0da3 (diff) | |
gnu: Add go-github-com-opencontainers-image-spec-schema.
* gnu/packages/containers.scm
(go-github-com-opencontainers-image-spec-schema): New variable.
Relates-to: guix/guix#7785
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/containers.scm | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index 50489dace09..f8d8655456b 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm | |||
| @@ -438,6 +438,67 @@ It can be used with QEMU, Hyperkit, Hyper-V and User-Mode Linux. | |||
| 438 | The binary is called @command{gvproxy}.") | 438 | The binary is called @command{gvproxy}.") |
| 439 | (license license:asl2.0))) | 439 | (license license:asl2.0))) |
| 440 | 440 | ||
| 441 | (define-public go-github-com-opencontainers-image-spec-schema | ||
| 442 | (package | ||
| 443 | (name "go-github-com-opencontainers-image-spec-schema") | ||
| 444 | (version "0.0.0-20260514171043-13cff54902ec") | ||
| 445 | (source | ||
| 446 | (origin | ||
| 447 | (method git-fetch) | ||
| 448 | (uri (git-reference | ||
| 449 | (url "https://github.com/opencontainers/image-spec") | ||
| 450 | (commit (go-version->git-ref version)))) | ||
| 451 | (file-name (git-file-name name version)) | ||
| 452 | (sha256 | ||
| 453 | (base32 "0jg1wfbr6rva24cz6q6d73wgaridzkh9sclzm2dwxpiwmbkcas38")) | ||
| 454 | (modules '((guix build utils) | ||
| 455 | (ice-9 ftw) | ||
| 456 | (srfi srfi-26))) | ||
| 457 | (snippet | ||
| 458 | #~(begin | ||
| 459 | (define (delete-all-but directory . preserve) | ||
| 460 | (define (directory? x) | ||
| 461 | (and=> (stat x #f) | ||
| 462 | (compose (cut eq? 'directory <>) stat:type))) | ||
| 463 | (with-directory-excursion directory | ||
| 464 | (let* ((pred | ||
| 465 | (negate (cut member <> (append '("." "..") preserve)))) | ||
| 466 | (items (scandir "." pred))) | ||
| 467 | (for-each (lambda (item) | ||
| 468 | (if (directory? item) | ||
| 469 | (delete-file-recursively item) | ||
| 470 | (delete-file item))) | ||
| 471 | items)))) | ||
| 472 | (delete-all-but "." "schema"))))) | ||
| 473 | (build-system go-build-system) | ||
| 474 | (arguments | ||
| 475 | (list | ||
| 476 | #:embed-files | ||
| 477 | ;; For go-github-com-santhosh-tekuri-jsonschema-v6: | ||
| 478 | #~(list "applicator" | ||
| 479 | "content" | ||
| 480 | "core" | ||
| 481 | "format" | ||
| 482 | "format-annotation" | ||
| 483 | "format-assertion" | ||
| 484 | "meta-data" | ||
| 485 | "schema" | ||
| 486 | "unevaluated" | ||
| 487 | "validation") | ||
| 488 | #:import-path "github.com/opencontainers/image-spec/schema" | ||
| 489 | #:unpack-path "github.com/opencontainers/image-spec")) | ||
| 490 | (propagated-inputs | ||
| 491 | (list go-github-com-opencontainers-go-digest | ||
| 492 | go-github-com-opencontainers-image-spec | ||
| 493 | go-github-com-russross-blackfriday-v2 | ||
| 494 | go-github-com-santhosh-tekuri-jsonschema-v6)) | ||
| 495 | (home-page "https://github.com/opencontainers/image-spec") | ||
| 496 | (synopsis "OCI Image Format") | ||
| 497 | (description | ||
| 498 | "Package schema defines the OCI image media types, schema definitions and | ||
| 499 | validation functions.") | ||
| 500 | (license license:asl2.0))) | ||
| 501 | |||
| 441 | (define-public go-github-com-opencontainers-image-tools | 502 | (define-public go-github-com-opencontainers-image-tools |
| 442 | (package | 503 | (package |
| 443 | (name "go-github-com-opencontainers-image-tools") | 504 | (name "go-github-com-opencontainers-image-tools") |
