1 { lib, stdenv, fetchurl, pkg-config, meson, ninja, glib, libintl }:
5 stdenv.mkDerivation rec {
6 pname = "desktop-file-utils";
10 url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.xz";
11 sha256 = "02bkfi6fyk4c0gh2avd897882ww5zl7qg7bzzf28qb57kvkvsvdj";
14 nativeBuildInputs = [ pkg-config meson ninja ];
15 buildInputs = [ glib libintl ];
18 substituteInPlace src/install.c \
19 --replace \"update-desktop-database\" \"$out/bin/update-desktop-database\"
22 setupHook = ./setup-hook.sh;
25 homepage = "http://www.freedesktop.org/wiki/Software/desktop-file-utils";
26 description = "Command line utilities for working with .desktop files";
27 platforms = platforms.linux ++ platforms.darwin;
28 license = licenses.gpl2;