nix: Provide a static build too

While there, make the container use the statically linked package.

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
Gergely Nagy 2025-01-29 07:59:04 +01:00
parent ea9972dbfc
commit ddd948171c
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -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 = {

View file

@ -4,4 +4,5 @@
# SPDX-License-Identifier: MIT
_: _final: prev: {
iocaine = prev.callPackage ./iocaine.nix { };
iocaine-static = prev.pkgsStatic.callPackage ./iocaine.nix { };
}