2021-12-26 17:43:05 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, meson, ninja, glib, libintl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "desktop-file-utils";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "0.26";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.xz";
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "02bkfi6fyk4c0gh2avd897882ww5zl7qg7bzzf28qb57kvkvsvdj";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
nativeBuildInputs = [ pkg-config meson ninja ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ glib libintl ];
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/install.c \
|
|
|
|
--replace \"update-desktop-database\" \"$out/bin/update-desktop-database\"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.freedesktop.org/wiki/Software/desktop-file-utils";
|
|
|
|
description = "Command line utilities for working with .desktop files";
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|