mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 10:10:22 +02:00
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
|
|
{
|
||
|
|
config,
|
||
|
|
pkgs,
|
||
|
|
...
|
||
|
|
}:
|
||
|
|
|
||
|
|
{
|
||
|
|
/*
|
||
|
|
xdg.desktopEntries = {
|
||
|
|
"clion" = {
|
||
|
|
name = "CLion (Nix Shell)";
|
||
|
|
genericName = "C/C++ IDE from JetBrains";
|
||
|
|
exec = "nix develop ${config.xdg.configHome}/nix-shells/cpp -c clion %f";
|
||
|
|
icon = "clion";
|
||
|
|
type = "Application";
|
||
|
|
terminal = false;
|
||
|
|
categories = [
|
||
|
|
"Development"
|
||
|
|
"IDE"
|
||
|
|
];
|
||
|
|
settings = {
|
||
|
|
StartupWMClass = "jetbrains-clion";
|
||
|
|
};
|
||
|
|
mimeType = [
|
||
|
|
"text/x-c++src"
|
||
|
|
"text/x-c++hdr"
|
||
|
|
"text/x-csrc"
|
||
|
|
"text/x-chdr"
|
||
|
|
];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
*/
|
||
|
|
|
||
|
|
xdg.dataFile."applications/clion.desktop".text = ''
|
||
|
|
[Desktop Entry]
|
||
|
|
Type=Application
|
||
|
|
Name=CLion (Nix Shell)
|
||
|
|
GenericName=C/C++ IDE from JetBrains
|
||
|
|
Exec=sh -c "nix develop ${config.xdg.configHome}/nix-shells/cpp -c clion %f"
|
||
|
|
Icon=clion
|
||
|
|
Terminal=false
|
||
|
|
Categories=Development;IDE;
|
||
|
|
StartupWMClass=jetbrains-clion
|
||
|
|
MimeType=text/x-c++src;text/x-c++hdr;text/x-csrc;text/x-chdr;
|
||
|
|
'';
|
||
|
|
}
|