Skip to content

Commit

Permalink
ntbtls: fix darwin build
Browse files Browse the repository at this point in the history
/cc ZHF #36454
  • Loading branch information
LnL7 committed Mar 22, 2018
1 parent 1998e24 commit 366bf3a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/development/libraries/ntbtls/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libgpgerror, libgcrypt, libksba, zlib }:
{ stdenv, fetchurl, gettext, libgpgerror, libgcrypt, libksba, zlib }:

with stdenv.lib;

Expand All @@ -13,7 +13,8 @@ stdenv.mkDerivation rec {

outputs = [ "dev" "out" ];

buildInputs = [ libgcrypt libgpgerror libksba zlib ];
buildInputs = [ libgcrypt libgpgerror libksba zlib ]
++ stdenv.lib.optional stdenv.isDarwin gettext;

postInstall = ''
moveToOutput "bin/ntbtls-config" $dev
Expand Down

2 comments on commit 366bf3a

@matthewbauer
Copy link
Member

@matthewbauer matthewbauer commented on 366bf3a Mar 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future, note you can just add "gettext". It won't hurt Linux to have it added (and it's arguably the "correct" to include it as a dependency, see #37056). The only downside is that it will change the hash.

@LnL7
Copy link
Member Author

@LnL7 LnL7 commented on 366bf3a Mar 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, just wanted to avoid potential rebuilds.

Please sign in to comment.