summary refs log tree commit diff
path: root/pkgs/development/libraries/libelf/default.nix
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-27 12:01:20 +0000
committerGitHub <noreply@github.com>2021-07-27 12:01:20 +0000
commit2692c2e4277b0b1b3b01299462f238efccba91e2 (patch)
tree9c186fa1b83585cd1f7f82351b8c8d061bfd6395 /pkgs/development/libraries/libelf/default.nix
parent4fc4793298c10b1d648a0f269bc44394d5171c9e (diff)
parent2431a34ffe50eeb382ea4d7f8d3984e9029d6e04 (diff)
downloadnixpkgs-2692c2e4277b0b1b3b01299462f238efccba91e2.tar
nixpkgs-2692c2e4277b0b1b3b01299462f238efccba91e2.tar.gz
nixpkgs-2692c2e4277b0b1b3b01299462f238efccba91e2.tar.bz2
nixpkgs-2692c2e4277b0b1b3b01299462f238efccba91e2.tar.lz
nixpkgs-2692c2e4277b0b1b3b01299462f238efccba91e2.tar.xz
nixpkgs-2692c2e4277b0b1b3b01299462f238efccba91e2.tar.zst
nixpkgs-2692c2e4277b0b1b3b01299462f238efccba91e2.zip
Merge master into staging-next
Diffstat (limited to 'pkgs/development/libraries/libelf/default.nix')
-rw-r--r--pkgs/development/libraries/libelf/default.nix5
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