2019-12-20 05:54:26 +01:00
|
|
|
{ pkgs, lib, ... }: {
|
|
|
|
desktopFile = bin:
|
|
|
|
{ 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
|
|
|
|
Exec=${bin}/bin/${command} %U
|
|
|
|
Comment=An open source web browser from Google
|
|
|
|
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; };
|
|
|
|
|
|
|
|
}
|