GNU bug report logs -
#60571
activating tests for skia 2D graphics library
Previous Next
Reported by: Nicolas Graves <ngraves <at> ngraves.fr>
Date: Thu, 5 Jan 2023 10:04:01 UTC
Severity: normal
Tags: moreinfo
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hello,
Nicolas Graves <ngraves <at> ngraves.fr> writes:
> * gnu/packages/vulkan.scm (spirv-tools-for-skia): New variable.
> ---
> gnu/packages/vulkan.scm | 23 +++++++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm
> index da83417dba..9f02b1d235 100644
> --- a/gnu/packages/vulkan.scm
> +++ b/gnu/packages/vulkan.scm
> @@ -129,6 +129,29 @@ (define-public spirv-tools
> parser,disassembler, validator, and optimizer for SPIR-V.")
> (license license:asl2.0)))
>
> +(define-public spirv-tools-for-skia
> + (package
> + (inherit spirv-tools)
> + (name "spirv-tools-for-skia")
> + (version %vulkan-sdk-skia-version)
> + (source
> + (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://skia.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools.git")
Same line length comment as previously.
> + (commit version)))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32 "0cp1amgylflh36nw3sy0cy7pf9bhhzykk3vxqwmgnxiryr65nhph"))))
> + (inputs (list spirv-headers-for-skia))
> + (native-inputs (list pkg-config python-wrapper))
> + (arguments
> + (list
> + #:configure-flags `(list "-DBUILD_SHARED_LIBS=ON"
> + (string-append
> + "-DSPIRV-Headers_SOURCE_DIR="
> + (assoc-ref %build-inputs "spirv-headers-for-skia")))))))
The configure-flags should use a gexp #~(list ...) in which you can then use
#$(this-package-native-input "spirv-headers-for-skia").
--
Thanks,
Maxim
This bug report was last modified 1 year and 314 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.