RunCommandHook
This commit is contained in:
24
flake.nix
24
flake.nix
@@ -106,23 +106,13 @@
|
|||||||
partitions = 1;
|
partitions = 1;
|
||||||
partitionType = "count";
|
partitionType = "count";
|
||||||
});
|
});
|
||||||
|
runCommandHook = {
|
||||||
newalan-docker = let
|
recurseForDerivations = true;
|
||||||
image = pkgs.dockerTools.buildImage {
|
newalan = pkgs.writeScript "New Alan CD" ''
|
||||||
name = "newalan";
|
echo HIIIII
|
||||||
tag = "latest";
|
echo Whee
|
||||||
|
'';
|
||||||
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
|
|
||||||
'';
|
|
||||||
} // lib.optionalAttrs (system == "x86_64-linux") {
|
} // lib.optionalAttrs (system == "x86_64-linux") {
|
||||||
# NB: cargo-tarpaulin only supports x86_64 systems
|
# NB: cargo-tarpaulin only supports x86_64 systems
|
||||||
# Check code coverage (note: this will not upload coverage anywhere)
|
# Check code coverage (note: this will not upload coverage anywhere)
|
||||||
|
|||||||
Reference in New Issue
Block a user