3
0
Fork 0
forked from mirrors/nixpkgs

girara: supports darwin

This commit is contained in:
Matthew Bauer 2017-04-21 17:44:19 -05:00
parent b73eb69582
commit f2d3fc12b8
No known key found for this signature in database
GPG key ID: E04D0AD9469141C3

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gtk, gettext, ncurses
{ stdenv, fetchurl, pkgconfig, gtk, gettext, ncurses, libiconv, libintlOrEmpty
, withBuildColors ? true
}:
@ -18,7 +18,10 @@ stdenv.mkDerivation rec {
--replace 'ifdef TPUT_AVAILABLE' 'ifneq ($(TPUT_AVAILABLE), 0)'
'';
buildInputs = [ pkgconfig gtk gettext ];
buildInputs = [ pkgconfig gtk gettext libintlOrEmpty ]
++ stdenv.lib.optional stdenv.isDarwin libiconv;
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
makeFlags = [
"PREFIX=$(out)"
@ -35,7 +38,7 @@ stdenv.mkDerivation rec {
that focuses on simplicity and minimalism.
'';
license = licenses.zlib;
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
maintainers = [ maintainers.garbas ];
};
}