libelf: fix build on NetBSD
This is a better solution than disabling native language entirely, like on Darwin.
This commit is contained in:
parent
768cabd888
commit
fc04308b0a
@ -1,5 +1,5 @@
|
|||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, fetchurl, autoreconfHook, gettext
|
, fetchurl, autoreconfHook, gettext, netbsd
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# Note: this package is used for bootstrapping fetchurl, and thus
|
# Note: this package is used for bootstrapping fetchurl, and thus
|
||||||
@ -33,7 +33,8 @@ stdenv.mkDerivation rec {
|
|||||||
# on Darwin, so disable NLS for now.
|
# on Darwin, so disable NLS for now.
|
||||||
++ lib.optional stdenv.hostPlatform.isDarwin "--disable-nls";
|
++ lib.optional stdenv.hostPlatform.isDarwin "--disable-nls";
|
||||||
|
|
||||||
nativeBuildInputs = [ gettext ]
|
nativeBuildInputs =
|
||||||
|
if stdenv.hostPlatform.isNetBSD then [ netbsd.gencat ] else [ gettext ]
|
||||||
# Need to regenerate configure script with newer version in order to pass
|
# Need to regenerate configure script with newer version in order to pass
|
||||||
# "mr_cv_target_elf=yes", but `autoreconfHook` brings in `makeWrapper`
|
# "mr_cv_target_elf=yes", but `autoreconfHook` brings in `makeWrapper`
|
||||||
# which doesn't work with the bootstrapTools bash, so can only do this
|
# which doesn't work with the bootstrapTools bash, so can only do this
|
||||||
|
Loading…
Reference in New Issue
Block a user