@ -193,15 +193,20 @@ in rec {
" _ _ d a r w i n A l l o w L o c a l N e t w o r k i n g "
" _ _ i m p u r e H o s t D e p s " " _ _ p r o p a g a t e d I m p u r e H o s t D e p s "
" s a n d b o x P r o f i l e " " p r o p a g a t e d S a n d b o x P r o f i l e " ] )
// ( lib . optionalAttrs ( ! ( attrs ? name ) && attrs ? pname && attrs ? version ) ) {
name = " ${ attrs . pname } - ${ attrs . version } " ;
} // ( lib . optionalAttrs ( stdenv . hostPlatform != stdenv . buildPlatform && ! dontAddHostSuffix && ( attrs ? name || ( attrs ? pname && attrs ? version ) ) ) ) {
# Fixed-output derivations like source tarballs shouldn't get a host
# 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
# hash can't be the same. See #32986.
name = " ${ attrs . name or " ${ attrs . pname } - ${ attrs . version } " } - ${ stdenv . hostPlatform . config } " ;
} // {
// ( lib . optionalAttrs ( attrs ? name || ( attrs ? pname && attrs ? version ) ) {
name =
let
name' = attrs . name or
" ${ attrs . pname } - ${ attrs . version } " ;
# Fixed-output derivations like source tarballs shouldn't get a host
# 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
# hash can't be the same. See #32986.
hostSuffix = lib . optionalString
( stdenv . hostPlatform != stdenv . buildPlatform && ! dontAddHostSuffix )
" - ${ stdenv . hostPlatform . config } " ;
in name' + hostSuffix ;
} ) // {
builder = attrs . realBuilder or stdenv . shell ;
args = attrs . args or [ " - e " ( attrs . builder or ./default-builder.sh ) ] ;
inherit stdenv ;