stdenv/make-derivation: add -static to name if building statically
This commit is contained in:
parent
fe0524cd7d
commit
851c0f1cb7
@ -196,8 +196,9 @@ in rec {
|
|||||||
// (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
|
// (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
|
||||||
name =
|
name =
|
||||||
let
|
let
|
||||||
|
staticMarker = lib.optionalString stdenv.hostPlatform.isStatic "-static";
|
||||||
name' = attrs.name or
|
name' = attrs.name or
|
||||||
"${attrs.pname}-${attrs.version}";
|
"${attrs.pname}${staticMarker}-${attrs.version}";
|
||||||
# Fixed-output derivations like source tarballs shouldn't get a host
|
# Fixed-output derivations like source tarballs shouldn't get a host
|
||||||
# suffix. But we have some weird ones with run-time deps that are
|
# suffix. But we have some weird ones with run-time deps that are
|
||||||
# just used for their side-affects. Those might as well since the
|
# just used for their side-affects. Those might as well since the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user