singularity, apptainer: adjust dependencies

This commit is contained in:
Yueh-Shun Li 2023-04-05 04:09:39 +08:00
parent f6e7fccfa6
commit 722948a942

View File

@ -36,7 +36,9 @@ in
, conmon , conmon
, coreutils , coreutils
, cryptsetup , cryptsetup
, e2fsprogs
, fakeroot , fakeroot
, fuse2fs ? e2fsprogs.fuse2fs
, go , go
, gpgme , gpgme
, libseccomp , libseccomp
@ -117,6 +119,12 @@ in
which which
]; ];
# Search inside the project sources
# and see the `control` file of the Debian package from upstream repos
# for build-time dependencies and run-time utilities
# apptainer/apptainer: https://github.com/apptainer/apptainer/blob/main/dist/debian/control
# sylabs/singularity: https://github.com/sylabs/singularity/blob/main/debian/control
buildInputs = [ buildInputs = [
bash # To patch /bin/sh shebangs. bash # To patch /bin/sh shebangs.
conmon conmon
@ -124,8 +132,7 @@ in
gpgme gpgme
libuuid libuuid
openssl openssl
squashfsTools squashfsTools # Required at build time by SingularityCE
squashfuse
] ]
++ lib.optional enableNvidiaContainerCli nvidia-docker ++ lib.optional enableNvidiaContainerCli nvidia-docker
++ lib.optional enableSeccomp libseccomp ++ lib.optional enableSeccomp libseccomp
@ -149,6 +156,7 @@ in
coreutils coreutils
cryptsetup # cryptsetup cryptsetup # cryptsetup
fakeroot fakeroot
fuse2fs # Mount ext3 filesystems
go go
privileged-un-utils privileged-un-utils
squashfsTools # mksquashfs unsquashfs # Make / unpack squashfs image squashfsTools # mksquashfs unsquashfs # Make / unpack squashfs image