void-packages/srcpkgs/nvidia-container-toolkit/template

26 lines
1.0 KiB
Bash

# Template file for 'nvidia-container-toolkit'
pkgname=nvidia-container-toolkit
version=1.16.1
revision=2
archs="x86_64"
build_style=go
go_import_path=github.com/NVIDIA/nvidia-container-toolkit
go_package="${go_import_path}/cmd/nvidia-container-runtime-hook
${go_import_path}/cmd/nvidia-container-runtime
${go_import_path}/cmd/nvidia-ctk"
depends="libnvidia-container"
short_desc="Build and run containers leveraging NVIDIA GPUs"
maintainer="Quentin Freimanis <quentinfreimanis@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/NVIDIA/nvidia-container-toolkit/"
distfiles="https://github.com/NVIDIA/nvidia-container-toolkit/archive/v${version}.tar.gz"
checksum=38a193444e0342c0a2c0d3664403e2c341eb77f1461b3f9172fd93c04de82165
post_install() {
ln -sf /usr/bin/nvidia-container-runtime-hook ${DESTDIR}/usr/bin/${pkgname}
vmkdir /etc/nvidia-container-runtime 755
${DESTDIR}/usr/bin/nvidia-ctk --quiet config \
--config-file=${DESTDIR}/etc/nvidia-container-runtime/config.toml \
--in-place
}