xcruiser: add desktop item

Changed files
+12 -2
pkgs
applications
misc
xcruiser
+12 -2
pkgs/applications/misc/xcruiser/default.nix
···
-
{ lib, stdenv, fetchurl, gccmakedep, imake, libXt, libXaw, libXpm, libXext }:
+
{ lib, stdenv, fetchurl, gccmakedep, imake, libXt, libXaw, libXpm, libXext, copyDesktopItems, makeDesktopItem }:
stdenv.mkDerivation rec {
pname = "xcruiser";
···
sha256 = "1r8whva38xizqdh7jmn6wcmfmsndc67pkw22wzfzr6rq0vf6hywi";
};
-
nativeBuildInputs = [ gccmakedep imake ];
+
nativeBuildInputs = [ gccmakedep imake copyDesktopItems ];
buildInputs = [ libXt libXaw libXpm libXext ];
makeFlags = [
···
"CONFDIR=${placeholder "out"}/etc/X11"
"LIBDIR=${placeholder "out"}/lib/X11"
"XAPPLOADDIR=${placeholder "out"}/etc/X11/app-defaults"
+
];
+
+
desktopItems = [
+
(makeDesktopItem {
+
name = "XCruiser";
+
exec = "xcruiser";
+
desktopName = "XCruiser";
+
comment = "filesystem visualization utility";
+
categories = [ "Utility" ];
+
})
];
meta = with lib; {