159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
44 lines
915 B
Nix
44 lines
915 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, pkg-config
|
|
, meson
|
|
, ninja
|
|
, glib
|
|
, libintl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "desktop-file-utils";
|
|
version = "0.27";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-${version}.tar.xz";
|
|
hash = "sha256-oIF985zjhbZiGIBAfFbx8pgWjAQMIDLO34jVt2r/6DY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
meson
|
|
ninja
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
libintl
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/install.c \
|
|
--replace \"update-desktop-database\" \"$out/bin/update-desktop-database\"
|
|
'';
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.freedesktop.org/wiki/Software/desktop-file-utils";
|
|
description = "Command line utilities for working with .desktop files";
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
license = licenses.gpl2Plus;
|
|
};
|
|
}
|