runCommandHook Meta Attribute
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -66,6 +66,12 @@
|
|||||||
# artifacts from above.
|
# artifacts from above.
|
||||||
newalan = craneLib.buildPackage (commonArgs // {
|
newalan = craneLib.buildPackage (commonArgs // {
|
||||||
inherit cargoArtifacts;
|
inherit cargoArtifacts;
|
||||||
|
runCommandHook = {
|
||||||
|
newalan = pkgs.writeScript "New Alan CD" ''
|
||||||
|
echo HIIIII $(date) >> ~/TEST_SCRIPT
|
||||||
|
echo Wheee
|
||||||
|
'';
|
||||||
|
};
|
||||||
});
|
});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -106,13 +112,6 @@
|
|||||||
partitions = 1;
|
partitions = 1;
|
||||||
partitionType = "count";
|
partitionType = "count";
|
||||||
});
|
});
|
||||||
|
|
||||||
runCommandHook = {
|
|
||||||
newalan = pkgs.writeScript "New Alan CD" ''
|
|
||||||
echo HIIIII $(date) >> ~/TEST_SCRIPT
|
|
||||||
echo Wheee
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
} // 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