nixbuild/package.nix
Ophestra a3427ce7dd
context: interface command type
This should allow caller to override the method to run in a container.
2025-09-13 13:06:39 +09:00

33 lines
458 B
Nix

{
lib,
stdenv,
buildGoModule,
pkg-config,
libffi,
libseccomp,
}:
buildGoModule {
pname = "nix-tool";
version = "0.1.4";
src = ./.;
vendorHash = "sha256-AUSqbsXvJvkOE0BjO6XnPTDD2NkOHY2XUbo7jZtYmd4=";
ldflags = [
"-s -w"
]
++ lib.optionals stdenv.hostPlatform.isStatic [
"-linkmode external"
"-extldflags \"-static\""
];
buildInputs = [
libffi
libseccomp
];
nativeBuildInputs = [
pkg-config
];
}