Commit e2534353 authored by Valentin Reis's avatar Valentin Reis

adds the path trick to get singularity in the nix-build env

parent dad2ae92
Pipeline #7424 failed with stages
in 2 minutes and 13 seconds
...@@ -444,6 +444,7 @@ let ...@@ -444,6 +444,7 @@ let
testGeneric = doDhrun genericTestName; testGeneric = doDhrun genericTestName;
testSingularity = (doDhrun "run-singularity").overrideAttrs (o:{ testSingularity = (doDhrun "run-singularity").overrideAttrs (o:{
buildPhase = "PATH=$PATH:/tmp/argonix/ " + o.buildPhase;
__noChroot = true; # the test needs OS singularity installation so we disable sanboxing here. __noChroot = true; # the test needs OS singularity installation so we disable sanboxing here.
}); });
...@@ -486,20 +487,18 @@ let ...@@ -486,20 +487,18 @@ let
bld = bleeding; bld = bleeding;
singularityDebugTest = pkgs.stdenv.mkDerivation rec { #testSingularity = pkgs.stdenv.mkDerivation rec {
name = "singdebg"; #name = "singdebg";
path = "/run/current-system/sw/bin/"; #src = ../dhrun ;
#installPhase = ''
src = ../dhrun ; #mkdir -p $out
installPhase = '' #echo "tata"
mkdir -p $out #PATH=$PATH:/tmp/argonix singularity --version
echo $PATH #echo "toto"
singularity --version #'';
singularity --help #unpackPhase = "true";
''; #};
unpackPhase = "true";
};
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment