3
0
Fork 0
forked from mirrors/nixpkgs

desktop-file-utils: support darwin

This commit is contained in:
Matthew Bauer 2017-04-20 19:44:30 -05:00
parent 18b8a22bca
commit bd07af92ec
No known key found for this signature in database
GPG key ID: E04D0AD9469141C3

View file

@ -1,4 +1,6 @@
{ stdenv, fetchurl, pkgconfig, glib }:
{ stdenv, fetchurl, pkgconfig, glib, libintlOrEmpty }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "desktop-file-utils-0.22";
@ -8,11 +10,13 @@ stdenv.mkDerivation rec {
sha256 = "1ianvr2a69yjv4rpyv30w7yjsmnsb23crrka5ndqxycj4rkk4dc4";
};
buildInputs = [ pkgconfig glib ];
buildInputs = [ pkgconfig glib libintlOrEmpty ];
NIX_LDFLAGS = optionalString stdenv.isDarwin "-lintl";
meta = {
homepage = http://www.freedesktop.org/wiki/Software/desktop-file-utils;
description = "Command line utilities for working with .desktop files";
platforms = stdenv.lib.platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
};
}