about summary refs log tree commit diff
path: root/pkgs/applications/virtualization/singularity/generic.nix
AgeCommit message (Collapse)AuthorFilesLines
2024-04-25apptainer, singularity: avoid list absorption when appended by two more ++Yueh-Shun Li1-9/+15
2024-04-25apptainer, singularity: format Nix expression with nixfmtYueh-Shun Li1-128/+147
Make the Nix expression generic.nix and package.nix conformant to Nix RFC 166.
2024-04-25apptainer: rearrange dependenciesYueh-Shun Li1-1/+1
2024-03-16apptainer.gpuChecks.saxpy: fix the evalSergei Trofimovich1-1/+1
Without the change the eval fails as: $ nix build --no-link -f. apptainer.gpuChecks.saxpy error: error: attribute 'image-saxpy' missing at pkgs/applications/virtualization/singularity/generic.nix:303:72: 302| '' 303| ${lib.getExe finalAttrs.finalPackage} exec --nv $@ ${finalAttrs.passthru.tests.image-saxpy} saxpy | ^ 304| '';
2024-01-10apptainer: fix nvliblist.conf-based --nvSomeone Serge1-2/+11
(cherry picked from commit 680bbed84fd37e5a46330e1c9b63a7a60a9e4933)
2024-01-10apptainer: add a cuda testSomeone Serge1-0/+34
(cherry picked from commit 0c4fe1f45241fee18ce1a33d2a8a3dfdba611cbb)
2024-01-10apptainer: allow --nvccli with read-only imagesSomeone Serge1-0/+7
(cherry picked from commit 07305dff4f2de16df1532e846d1365b3660146ac)
2023-11-23Merge pull request #250949 from ShamrockLee/apptainer-localstatedirSilvan Mosberger1-1/+4
apptainer, singularity: use self-contained LOCALSTATEDIR by default
2023-08-25Merge pull request #230992 from ShamrockLee/singularity-nvidiaJustin Bedő1-1/+5
apptainer, singularity: fix wrapper PATH prefix
2023-08-23apptainer, singularity: make LOCALSTATEDIR internal by defaultYueh-Shun Li1-1/+4
Use "$out/var/lib" as LOCALSTATEDIR configuration value by default intsead of "/var/lib" as a way toward top-level-directory independent runtime. Add input argument externalLocalStateDir to optionally specify the path to external LOCALSTATEDIR if not null. Add NixOS module option programs.singularity.enableExternalLocalStateDir (default to true) to use "/var/lib" as LOCALSTATEDIR.
2023-07-14Merge pull request #242905 from Artturin/gomodu1Artturi1-1/+1
2023-07-14treewide: go-modules -> goModulesArtturin1-1/+1
In 787af0f79f128cb21b113d2eb37e64d913f18aae I had to change ${go-modules} to $goModules to allow overrideAttrs to work; However, env vars cannot contain -, so i had to change go-modules too. This in turn broke nix-update because it uses the go-modules attr. Instead of making nix-update more complicated, make go-modules naming match cargoDeps. `fd --type f | xargs sd '\bgo-modules\b' 'goModules'` and revert change to pkgs/applications/misc/dstask/default.nix and pkgs/servers/http/dave/default.nix and pkgs/os-specific/darwin/plistwatch/default.nix release note added
2023-07-09apptainer: disable fortify3 hardening flagRobert Scott1-0/+3
2023-05-19singularity: specify "nvidia-container-cli path"Yueh-Shun Li1-0/+4
2023-05-18apptainer, singularity: fix wrapper PATH prefixYueh-Shun Li1-1/+1
Fix the missing trailing /bin in f6e7fcc
2023-04-08singularity, apptainer: adjust dependenciesYueh-Shun Li1-2/+10
2023-04-06apptainer, singularity: unify the PATH prefix to defaultPath and wrapProgramYueh-Shun Li1-4/+2
Use defaultPathInputs to control both path prefixes, reducing the number of input lists to maintain.
2023-04-05apptainer, singularity: add passthru.tests.image-hello-cowsayYueh-Shun Li1-2/+16
Add image-building tests with singularity-tools
2023-03-06treewide: deprecate isNullFelix Buehler1-3/+3
https://nixos.org/manual/nix/stable/language/builtins.html#builtins-isNull
2023-02-19apptainer: always specify either --with-suid or --without-suid build flagYueh-Shun Li1-2/+4
2023-02-08apptainer, singularity: enable non-FHS --fakeroot supportYueh-Shun Li1-0/+14
This patch provides input arguments `newuidmapPath` and `newgidmapPath` for apptainer and singularity to specify the path to the SUID-ed executables newuidmap and newgidmap where they are not available from the FHS PATH. As NixOS places those suided executables in a non-FHS position (/run/wrapper/bin), this patch provides programs.singularity.enableFakeroot option and implement with the above input parameters.
2023-02-08apptainer, singularity: fix defaultPath and reflect upstream changesYueh-Shun Li1-0/+222
Upstream changes: singularity 3.8.7 (the legacy) -> apptainer 1.1.3 (the renamed) / singularity 3.10.4 (Sylabs's fork) Build process: * Share between different sources * Fix the sed regexp to make defaultPath patch work * allowGoReference is now true * Provied input parameter removeCompat (default to false) that removes the compatible "*singularity*" symbolic links and related autocompletion files when projectName != "singularity" * Change localstatedir to /var/lib * Format with nixpkgs-fmt * Fix the defaultPath patching and use it instead of the `<executable> path` config directive deprecated in Apptainer * Provide dependencies for new functionalities such as squashfuse (unprivileged squashfs mount) * Provide an attribute `defaultPathInputs` to override prefix of container runtime default PATH NixOS module programs.singularity: * Allow users to specify packages * Place related directories to /var/lib * Format with nixpkgs-fmt singularity-tools: * Allow users to specify packages * Place related directories to /var/lib when building images in VM