From 26bac0b55b7dd0644bc5d7265be6bdc0a644b8aa Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Sat, 15 Apr 2023 23:07:16 -0500 Subject: [PATCH] build push-container into image --- flake.nix | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index a372298..a1cfa04 100644 --- a/flake.nix +++ b/flake.nix @@ -39,6 +39,8 @@ pkgs.nushell pkgs.podman pkgs.stdenv.cc.cc.lib + + self.packages.${system}.push-container ]; flake-registry = null; @@ -365,19 +367,27 @@ ]; }; }; + push-container = pkgs.writeTextFile { + name = "push-container"; + destination = "/bin/push-container"; + text = lib.concatStringsSep "\n" [ + "#!${pkgs.nushell}/bin/nu" + (builtins.readFile ./push-container.nu) + ]; + executable = true; + }; }; apps = { push-container = let - script = pkgs.writeTextFile - { - name = "push-container"; - text = lib.concatStringsSep "\n" [ - "#!${pkgs.nushell}/bin/nu" - (builtins.readFile ./push-container.nu) - ]; - executable = true; - }; + script = pkgs.writeTextFile { + name = "push-container"; + text = lib.concatStringsSep "\n" [ + "#!${pkgs.nushell}/bin/nu" + (builtins.readFile ./push-container.nu) + ]; + executable = true; + }; in { type = "app";