diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-06-07 14:31:49 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-07-27 09:18:33 +0000 |
commit | fc04308b0adc420fdf8ef9533770ef45edb09eee (patch) | |
tree | 4d1b645d23f9752854a39e2e9e8743549fc08864 /pkgs | |
parent | 768cabd8883c14f9fe31806353e4945c4c4963fe (diff) | |
download | nixpkgs-fc04308b0adc420fdf8ef9533770ef45edb09eee.tar nixpkgs-fc04308b0adc420fdf8ef9533770ef45edb09eee.tar.gz nixpkgs-fc04308b0adc420fdf8ef9533770ef45edb09eee.tar.bz2 nixpkgs-fc04308b0adc420fdf8ef9533770ef45edb09eee.tar.lz nixpkgs-fc04308b0adc420fdf8ef9533770ef45edb09eee.tar.xz nixpkgs-fc04308b0adc420fdf8ef9533770ef45edb09eee.tar.zst nixpkgs-fc04308b0adc420fdf8ef9533770ef45edb09eee.zip |
libelf: fix build on NetBSD
This is a better solution than disabling native language entirely, like on Darwin.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/libelf/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libelf/default.nix b/pkgs/development/libraries/libelf/default.nix index be328c54c08..47cd849f92c 100644 --- a/pkgs/development/libraries/libelf/default.nix +++ b/pkgs/development/libraries/libelf/default.nix @@ -1,5 +1,5 @@ { lib, stdenv -, fetchurl, autoreconfHook, gettext +, fetchurl, autoreconfHook, gettext, netbsd }: # Note: this package is used for bootstrapping fetchurl, and thus @@ -33,7 +33,8 @@ stdenv.mkDerivation rec { # on Darwin, so disable NLS for now. ++ 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 # "mr_cv_target_elf=yes", but `autoreconfHook` brings in `makeWrapper` # which doesn't work with the bootstrapTools bash, so can only do this |