runCommandHook Meta Attribute

This commit is contained in:
2023-03-09 00:11:01 -05:00
parent f2461b6b81
commit 4830c6d8b9

View File

@@ -66,6 +66,12 @@
# artifacts from above.
newalan = craneLib.buildPackage (commonArgs // {
inherit cargoArtifacts;
runCommandHook = {
newalan = pkgs.writeScript "New Alan CD" ''
echo HIIIII $(date) >> ~/TEST_SCRIPT
echo Wheee
'';
};
});
in
{
@@ -106,13 +112,6 @@
partitions = 1;
partitionType = "count";
});
runCommandHook = {
newalan = pkgs.writeScript "New Alan CD" ''
echo HIIIII $(date) >> ~/TEST_SCRIPT
echo Wheee
'';
};
} // lib.optionalAttrs (system == "x86_64-linux") {
# NB: cargo-tarpaulin only supports x86_64 systems
# Check code coverage (note: this will not upload coverage anywhere)