singularity-tools: remove deprecated shellScript and mkLayer

Scheduled for 25.05.
This commit is contained in:
Wolfgang Walther 2024-11-17 15:28:52 +01:00
parent 8ac9869133
commit c4461bbe1c
No known key found for this signature in database
GPG Key ID: B39893FA5F65CAE1

View File

@ -22,38 +22,6 @@ let
defaultSingularity = singularity; defaultSingularity = singularity;
in in
lib.makeExtensible (final: { lib.makeExtensible (final: {
# TODO(@ShamrockLee): Remove after Nixpkgs 24.11 branch-off.
shellScript =
lib.warn
"`singularity-tools.shellScript` is deprecated. Use `writeScript`, `writeShellScripts` or `writers.writeBash` instead."
(
name: text:
writeScript name ''
#!${runtimeShell}
set -e
${text}
''
);
# TODO(@ShamrockLee): Remove after Nixpkgs 24.11 branch-off.
mkLayer =
lib.warn
"`singularity-tools.mkLayer` is deprecated, as it is no longer used to implement `singularity-tools.buildImages`."
(
{
name,
contents ? [ ],
# May be "apptainer" instead of "singularity"
projectName ? (singularity.projectName or "singularity"),
}:
runCommand "${projectName}-layer-${name}" { inherit contents; } ''
mkdir $out
for f in $contents ; do
cp -ra $f $out/
done
''
);
buildImage = buildImage =
{ {
name, name,