Properly split Rust flags
This commit is contained in:
parent
6a765ae4ff
commit
64decb01d1
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ in {
|
||||||
nativeBuildInputs = prevAttrs.nativeBuildInputs or [ ] ++ [ final.makeBinaryWrapper ];
|
nativeBuildInputs = prevAttrs.nativeBuildInputs or [ ] ++ [ final.makeBinaryWrapper ];
|
||||||
buildInputs = prevAttrs.buildInputs or [ ] ++ [ final.mimalloc ];
|
buildInputs = prevAttrs.buildInputs or [ ] ++ [ final.mimalloc ];
|
||||||
|
|
||||||
NIX_RUSTFLAGS = lib.toList prevAttrs.NIX_RUSTFLAGS or [ ] ++ [ "-C link-arg=-lmimalloc" ];
|
NIX_RUSTFLAGS = lib.toList prevAttrs.NIX_RUSTFLAGS or [ ] ++ [ "-C" "link-arg=-lmimalloc" ];
|
||||||
|
|
||||||
postInstall = prevAttrs.postInstall or "" + ''
|
postInstall = prevAttrs.postInstall or "" + ''
|
||||||
wrapProgram "$out/bin/fractal" \
|
wrapProgram "$out/bin/fractal" \
|
||||||
|
@ -87,7 +87,7 @@ in {
|
||||||
NIX_LDFLAGS = toString (lib.toList prevAttrs.env.NIX_LDFLAGS or [ ] ++ [ "-lmimalloc" ]);
|
NIX_LDFLAGS = toString (lib.toList prevAttrs.env.NIX_LDFLAGS or [ ] ++ [ "-lmimalloc" ]);
|
||||||
};
|
};
|
||||||
|
|
||||||
NIX_RUSTFLAGS = lib.toList prevAttrs.NIX_RUSTFLAGS or [ ] ++ [ "-C link-arg=-lmimalloc" ];
|
NIX_RUSTFLAGS = lib.toList prevAttrs.NIX_RUSTFLAGS or [ ] ++ [ "-C" "link-arg=-lmimalloc" ];
|
||||||
} // lib.optionalAttrs (!prevAttrs ? env.NIX_LDFLAGS) {
|
} // lib.optionalAttrs (!prevAttrs ? env.NIX_LDFLAGS) {
|
||||||
NIX_LDFLAGS = lib.toList prevAttrs.NIX_LDFLAGS or [ ] ++ [ "-lmimalloc" ];
|
NIX_LDFLAGS = lib.toList prevAttrs.NIX_LDFLAGS or [ ] ++ [ "-lmimalloc" ];
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Reference in a new issue