RunCommandHook
This commit is contained in:
24
flake.nix
24
flake.nix
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user