Skip to content

Commit

Permalink
gettext: enable strictDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin committed May 7, 2022
1 parent bbe9795 commit 7d03992
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/libraries/gettext/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, fetchpatch, libiconv, xz }:
{ stdenv, lib, fetchurl, fetchpatch, libiconv, xz, bash }:

# Note: this package is used for bootstrapping fetchurl, and thus
# cannot use fetchpatch! All mutable patches (generated by GitHub or
Expand Down Expand Up @@ -47,12 +47,14 @@ stdenv.mkDerivation rec {
sed -i -e "s/\(libgettextsrc_la_LDFLAGS = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in
'';

strictDeps = true;
nativeBuildInputs = [
xz
xz.bin
];
buildInputs = [ bash ]
# HACK, see #10874 (and 14664)
buildInputs = lib.optional (!stdenv.isLinux && !stdenv.hostPlatform.isCygwin) libiconv;
++ lib.optionals (!stdenv.isLinux && !stdenv.hostPlatform.isCygwin) [ libiconv ];

setupHooks = [
../../../build-support/setup-hooks/role.bash
Expand Down

0 comments on commit 7d03992

Please sign in to comment.