mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
singularity-tools: remove deprecated shellScript and mkLayer
Scheduled for 25.05.
This commit is contained in:
parent
8ac9869133
commit
c4461bbe1c
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user