From 1174f77f4526b2fa38b4c51161c9452ea55c0a99 Mon Sep 17 00:00:00 2001 From: "DavidCrompton1192@gmail.com" Date: Mon, 6 Mar 2023 21:52:41 -0500 Subject: [PATCH] RunCommandHook --- flake.nix | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/flake.nix b/flake.nix index 5a1a973..bbcaf8b 100644 --- a/flake.nix +++ b/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)