From ddd948171cc91d466e819d541b9ed5db5953e3b2 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 29 Jan 2025 07:59:04 +0100 Subject: [PATCH] nix: Provide a static build too While there, make the container use the statically linked package. Signed-off-by: Gergely Nagy --- flake.nix | 2 +- nix/overlay.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index e250112..4fb2d2c 100644 --- a/flake.nix +++ b/flake.nix @@ -69,7 +69,7 @@ tag = "latest"; copyToRoot = pkgs.buildEnv { name = "image-root"; - paths = [ self.packages.${pkgs.hostPlatform.system}.iocaine ]; + paths = [ self.packages.${pkgs.hostPlatform.system}.iocaine-static ]; pathsToLink = [ "/bin" ]; }; config = { diff --git a/nix/overlay.nix b/nix/overlay.nix index 89c22b9..f0366ca 100644 --- a/nix/overlay.nix +++ b/nix/overlay.nix @@ -4,4 +4,5 @@ # SPDX-License-Identifier: MIT _: _final: prev: { iocaine = prev.callPackage ./iocaine.nix { }; + iocaine-static = prev.pkgsStatic.callPackage ./iocaine.nix { }; }