RunCommandHook

This commit is contained in:
2023-03-06 21:52:41 -05:00
parent 55674d2270
commit 1174f77f45

View File

@@ -106,23 +106,13 @@
partitions = 1;
partitionType = "count";
});
newalan-docker = let
image = pkgs.dockerTools.buildImage {
name = "newalan";
tag = "latest";
copyToRoot = pkgs.buildEnv {
name = "New Alan Root FS";
paths = [ newalan ];
pathsToLink = [ "/bin" ];
};
};
in pkgs.runCommandCC "New Alan Docker Release" {} ''
mkdir -p $out/{nix-support,share}
cp ${image} $out/share/newalan_image.tar.gz
echo "binary-dist container $out/share/newalan_image.tar.gz" >> $out/nix-support/hydra-build-products
'';
runCommandHook = {
recurseForDerivations = true;
newalan = pkgs.writeScript "New Alan CD" ''
echo HIIIII
echo Whee
'';
};
} // lib.optionalAttrs (system == "x86_64-linux") {
# NB: cargo-tarpaulin only supports x86_64 systems
# Check code coverage (note: this will not upload coverage anywhere)