2019-12-20 05:54:26 +01:00
|
|
|
{ pkgs, lib, ... }: {
|
|
|
|
desktopFile = bin:
|
2021-03-15 08:28:27 +01:00
|
|
|
{ comment ? "No Comment", longName ? "Script", command ? "${bin}/bin/${bin.name}", ... }:
|
2019-10-24 02:20:38 +02:00
|
|
|
pkgs.writeTextFile {
|
2019-12-20 05:54:26 +01:00
|
|
|
name = "${bin.name}.desktop";
|
2019-10-24 02:20:38 +02:00
|
|
|
destination = "/share/applications/${bin.name}.desktop";
|
|
|
|
text = ''
|
|
|
|
[Desktop Entry]
|
|
|
|
Type=Application
|
2021-03-15 08:28:27 +01:00
|
|
|
Exec=${command} %U
|
|
|
|
Comment=${comment}
|
2019-10-24 02:20:38 +02:00
|
|
|
Terminal=false
|
|
|
|
Name=${bin.name}
|
|
|
|
GenericName=${longName}
|
|
|
|
StartupWMClass=${bin.name}
|
|
|
|
'';
|
2019-12-20 05:54:26 +01:00
|
|
|
};
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
jenkins = import ./jenkins.nix { inherit lib; };
|
|
|
|
|
|
|
|
}
|