forked from mirrors/nixpkgs
desktop-file-utils: support darwin
This commit is contained in:
parent
18b8a22bca
commit
bd07af92ec
|
@ -1,4 +1,6 @@
|
||||||
{ stdenv, fetchurl, pkgconfig, glib }:
|
{ stdenv, fetchurl, pkgconfig, glib, libintlOrEmpty }:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "desktop-file-utils-0.22";
|
name = "desktop-file-utils-0.22";
|
||||||
|
@ -8,11 +10,13 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1ianvr2a69yjv4rpyv30w7yjsmnsb23crrka5ndqxycj4rkk4dc4";
|
sha256 = "1ianvr2a69yjv4rpyv30w7yjsmnsb23crrka5ndqxycj4rkk4dc4";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgconfig glib ];
|
buildInputs = [ pkgconfig glib libintlOrEmpty ];
|
||||||
|
|
||||||
|
NIX_LDFLAGS = optionalString stdenv.isDarwin "-lintl";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.freedesktop.org/wiki/Software/desktop-file-utils;
|
homepage = http://www.freedesktop.org/wiki/Software/desktop-file-utils;
|
||||||
description = "Command line utilities for working with .desktop files";
|
description = "Command line utilities for working with .desktop files";
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue