findutils: move CFLAGS into env for structuredAttrs
This commit is contained in:
@@ -57,11 +57,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"--localstatedir=/var/cache"
|
||||
];
|
||||
|
||||
CFLAGS = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# TODO: Revisit upstream issue https://savannah.gnu.org/bugs/?59972
|
||||
# https://github.com/Homebrew/homebrew-core/pull/69761#issuecomment-770268478
|
||||
"-D__nonnull\\(params\\)="
|
||||
];
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
||||
CFLAGS = toString [
|
||||
# TODO: Revisit upstream issue https://savannah.gnu.org/bugs/?59972
|
||||
# https://github.com/Homebrew/homebrew-core/pull/69761#issuecomment-770268478
|
||||
"-D__nonnull\\(params\\)="
|
||||
];
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
moveToOutput bin/locate $locate
|
||||
|
||||
Reference in New Issue
Block a user