mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-05 20:40:02 -08:00
This splits the complexity of the `flake.nix` into multiple files. At cross-compiled and static builds at the benefit of simpler nix expressions and generally better cross compilation compatibility. the same time, naersk is removed; causing much slower builds for cross- compiled packages. This partially addresses the points mentioned in #412.
12 lines
250 B
Nix
12 lines
250 B
Nix
{ dockerTools, buildEnv, rosenpass }:
|
|
|
|
dockerTools.buildImage {
|
|
name = rosenpass.name + "-oci";
|
|
copyToRoot = buildEnv {
|
|
name = "image-root";
|
|
paths = [ rosenpass ];
|
|
pathsToLink = [ "/bin" ];
|
|
};
|
|
config.Cmd = [ "/bin/rosenpass" ];
|
|
}
|