https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
5 lines
171 B
Bash
5 lines
171 B
Bash
# See pkgs/build-support/setup-hooks/role.bash
|
|
getHostRole
|
|
|
|
export NIX_LDFLAGS${role_post}+=" -lnbcompat"
|
|
export NIX_CFLAGS_COMPILE${role_post}+=" -DHAVE_NBTOOL_CONFIG_H"
|