python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / desktop-file-utils / default.nix
blobaf3e907c04ae3862407c6e520e860bf47607c285
1 { lib, stdenv, fetchurl, pkg-config, meson, ninja, glib, libintl }:
3 with lib;
5 stdenv.mkDerivation rec {
6   pname = "desktop-file-utils";
7   version = "0.26";
9   src = fetchurl {
10     url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.xz";
11     sha256 = "02bkfi6fyk4c0gh2avd897882ww5zl7qg7bzzf28qb57kvkvsvdj";
12   };
14   nativeBuildInputs = [ pkg-config meson ninja ];
15   buildInputs = [ glib libintl ];
17   postPatch = ''
18     substituteInPlace src/install.c \
19       --replace \"update-desktop-database\" \"$out/bin/update-desktop-database\"
20   '';
22   setupHook = ./setup-hook.sh;
24   meta = {
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;
29   };