xcruiser: add desktop item

This commit is contained in:
Felix Buehler 2024-01-29 23:16:10 +01:00 committed by Emery Hemingway
parent 9f45a4807a
commit 9312d7840b

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, gccmakedep, imake, libXt, libXaw, libXpm, libXext }: { lib, stdenv, fetchurl, gccmakedep, imake, libXt, libXaw, libXpm, libXext, copyDesktopItems, makeDesktopItem }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "xcruiser"; pname = "xcruiser";
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "1r8whva38xizqdh7jmn6wcmfmsndc67pkw22wzfzr6rq0vf6hywi"; sha256 = "1r8whva38xizqdh7jmn6wcmfmsndc67pkw22wzfzr6rq0vf6hywi";
}; };
nativeBuildInputs = [ gccmakedep imake ]; nativeBuildInputs = [ gccmakedep imake copyDesktopItems ];
buildInputs = [ libXt libXaw libXpm libXext ]; buildInputs = [ libXt libXaw libXpm libXext ];
makeFlags = [ makeFlags = [
@ -19,6 +19,16 @@ stdenv.mkDerivation rec {
"XAPPLOADDIR=${placeholder "out"}/etc/X11/app-defaults" "XAPPLOADDIR=${placeholder "out"}/etc/X11/app-defaults"
]; ];
desktopItems = [
(makeDesktopItem {
name = "XCruiser";
exec = "xcruiser";
desktopName = "XCruiser";
comment = "filesystem visualization utility";
categories = [ "Utility" ];
})
];
meta = with lib; { meta = with lib; {
description = "Filesystem visualization utility"; description = "Filesystem visualization utility";
longDescription = '' longDescription = ''