From 976d703d23d05296af45495ac6aa5a345773fecc Mon Sep 17 00:00:00 2001 From: Chris Hammill Date: Thu, 3 Mar 2022 19:54:17 +0000 Subject: [PATCH] singularity: enable setting vm mem in buildImage --- pkgs/build-support/singularity-tools/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/singularity-tools/default.nix b/pkgs/build-support/singularity-tools/default.nix index a6a3cd001b4a..46df792bdf6c 100644 --- a/pkgs/build-support/singularity-tools/default.nix +++ b/pkgs/build-support/singularity-tools/default.nix @@ -38,7 +38,8 @@ rec { contents ? [], diskSize ? 1024, runScript ? "#!${stdenv.shell}\nexec /bin/sh", - runAsRoot ? null + runAsRoot ? null, + memSize ? 512 }: let layer = mkLayer { inherit name; @@ -54,6 +55,7 @@ rec { size = diskSize; fullName = "singularity-run-disk"; }; + inherit memSize; } '' rm -rf $out