treewide: remove lintl references

libintl should be used directly, not through NIX_LDFLAGS.
This commit is contained in:
Matthew Bauer 2018-05-15 23:59:53 -05:00
parent 8419c347ca
commit c605d171bb
5 changed files with 8 additions and 17 deletions

View file

@ -38,6 +38,4 @@ stdenv.mkDerivation rec {
preConfigure = optionalString stdenv.isDarwin ''
intltoolize --force
'';
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
}

View file

@ -1,4 +1,5 @@
{ stdenv, fetchurl, pkgconfig, glib, gtk3, libgee, intltool, gnome3, libintlOrEmpty }:
{ stdenv, fetchurl, pkgconfig, glib, gtk3, libgee, intltool, gnome3
, libintl }:
let
pname = "libgnome-games-support";
@ -11,10 +12,8 @@ in stdenv.mkDerivation rec {
sha256 = "1j7lfcnc29lgn8ppn13wkn9w2y1n3lsapagwp91zh3bf0h2h4hv1";
};
nativeBuildInputs = [ pkgconfig intltool ] ++ libintlOrEmpty;
buildInputs = [ glib gtk3 libgee ];
NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;
nativeBuildInputs = [ pkgconfig intltool ];
buildInputs = [ glib gtk3 libgee libintl ];
passthru = {
updateScript = gnome3.updateScript {

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, intltool, gtk3 }:
{ stdenv, fetchurl, pkgconfig, intltool, gtk3, libintl }:
stdenv.mkDerivation rec {
name = "lxtask-${version}";
@ -11,12 +11,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig intltool ];
buildInputs = [ gtk3 ];
buildInputs = [ gtk3 libintl ];
configureFlags = [ "--enable-gtk3" ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
meta = {
description = "Lightweight and desktop independent task manager";
longDescription = ''

View file

@ -34,8 +34,6 @@ stdenv.mkDerivation rec {
glib
];
NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;
doCheck = true;
passthru = {

View file

@ -21,10 +21,10 @@ in stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkgconfig intltool gettext perl gobjectIntrospection vala_0_40 ]
nativeBuildInputs = [ pkgconfig intltool perl gobjectIntrospection vala_0_40 ]
++ stdenv.lib.optionals doCheck checkInputs;
buildInputs = [ atk cairo glib pango libxml2 ];
buildInputs = [ atk cairo glib pango libxml2 gettext ];
preBuild = ''
substituteInPlace gtksourceview/gtksourceview-utils.c --replace "@NIX_SHARE_PATH@" "$out/share"
@ -32,8 +32,6 @@ in stdenv.mkDerivation rec {
patches = [ ./3.x-nix_share_path.patch ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
enableParallelBuilding = true;
doCheck = stdenv.isLinux;