From 5d3e3f8a6e5390cfc72f0ac869974842bdfa5497 Mon Sep 17 00:00:00 2001 From: "DavidCrompton1192@gmail.com" Date: Mon, 6 Mar 2023 21:06:13 -0500 Subject: [PATCH] Make Manual Channel --- flake.nix | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/flake.nix b/flake.nix index 3a26baa..5936cc9 100644 --- a/flake.nix +++ b/flake.nix @@ -106,16 +106,9 @@ partitions = 1; partitionType = "count"; }); - } // lib.optionalAttrs (system == "x86_64-linux") { - # NB: cargo-tarpaulin only supports x86_64 systems - # Check code coverage (note: this will not upload coverage anywhere) - newalan-coverage = craneLib.cargoTarpaulin (commonArgs // { - inherit cargoArtifacts; - }); - - newalan-docker = pkgs.releaseTools.sourceTarball { - name = "New Alan Docker Image"; - src = pkgs.dockerTools.buildImage { + + newalan-docker = let + image = pkgs.dockerTools.buildImage { name = "newalan"; tag = "latest"; @@ -125,9 +118,21 @@ pathsToLink = [ "/bin" ]; }; }; + in pkgs.releaseTools.channel { + name = "New Alan Docker Image"; + constituents = [ +# image + ]; + src = image; }; + } // lib.optionalAttrs (system == "x86_64-linux") { + # NB: cargo-tarpaulin only supports x86_64 systems + # Check code coverage (note: this will not upload coverage anywhere) + newalan-coverage = craneLib.cargoTarpaulin (commonArgs // { + inherit cargoArtifacts; + }); }; - + packages.default = newalan; apps.default = flake-utils.lib.mkApp {