Skip to content

Commit

Permalink
gnutls: don't propagate -lunistring
Browse files Browse the repository at this point in the history
This fixes systemd build.  Also put it into the generic expression,
as there's only one version in nixpkgs ATM.
  • Loading branch information
vcunat committed Feb 20, 2017
1 parent 3ba1875 commit b17eb34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pkgs/development/libraries/gnutls/3.5.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ callPackage ./generic.nix (args // rec {
url = "ftp://ftp.gnutls.org/gcrypt/gnutls/v3.5/gnutls-${version}.tar.xz";
sha256 = "0l9971841jsfdcvcyhas17sk5rsby6x5vvwcmmj4x3zi9q60zcc2";
};

buildInputs = [ libunistring ];
})
7 changes: 5 additions & 2 deletions pkgs/development/libraries/gnutls/generic.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, fetchurl, stdenv, zlib, lzo, libtasn1, nettle, pkgconfig, lzip
, guileBindings, guile, perl, gmp, autogen, libidn, p11_kit, unbound, libiconv
, tpmSupport ? false, trousers, nettools, bash
, tpmSupport ? false, trousers, nettools, libunistring

# Version dependent args
, version, src, patches ? [], postPatch ? "", nativeBuildInputs ? []
Expand Down Expand Up @@ -37,7 +37,7 @@ stdenv.mkDerivation {

enableParallelBuilding = true;

buildInputs = [ lzo lzip libtasn1 libidn p11_kit zlib gmp autogen ]
buildInputs = [ lzo lzip libtasn1 libidn p11_kit zlib gmp autogen libunistring ]
++ lib.optional doCheck nettools
++ lib.optional (stdenv.isFreeBSD || stdenv.isDarwin) libiconv
++ lib.optional (tpmSupport && stdenv.isLinux) trousers
Expand All @@ -58,6 +58,9 @@ stdenv.mkDerivation {
-e 's,-L${gmp.dev}/lib,-L${gmp.out}/lib,' \
-e 's,-lgmp,-L${gmp.out}/lib -lgmp,' \
-i $out/lib/*.la "$dev/lib/pkgconfig/gnutls.pc"
# It seems only useful for static linking but basically noone does that.
substituteInPlace "$out/lib/libgnutls.la" \
--replace "-lunistring" ""
'';

meta = with lib; {
Expand Down

0 comments on commit b17eb34

Please sign in to comment.