aescrypt: move NIX_LDFLAGS into env for structuredAttrs
This commit is contained in:
@@ -14,7 +14,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
sha256 = "sha256-4uGS0LReq5dI7+Wel7ZWzFXx+utZWi93q4TUSw7AhNI=";
|
||||
};
|
||||
|
||||
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-liconv";
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
||||
NIX_LDFLAGS = "-liconv";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
substituteInPlace src/Makefile --replace "CC=gcc" "CC?=gcc"
|
||||
|
||||
Reference in New Issue
Block a user