about summary refs log tree commit diff
path: root/pkgs/build-support/make-desktopitem
AgeCommit message (Collapse)AuthorFilesLines
2023-03-06treewide: deprecate isNullFelix Buehler1-1/+1
https://nixos.org/manual/nix/stable/language/builtins.html#builtins-isNull
2022-06-09build-support/makeDesktopItem: make overridableJamie Quigley1-2/+2
2022-03-10build-support/makeDesktopItem: remove workaround, fix quotingK9001-8/+3
2022-03-09makeDesktopItem: improve error messagesJörg Thalheim1-12/+12
2022-03-08makeDesktopItem: use desktop-file-utils from buildPackages in checkPhaseNick Cao1-2/+2
2022-02-28treewide: fix some desktop file namesK9001-2/+7
pkgs.writeTextFile doesn't like spaces in filenames. This is fixed in #162246, but other tools will probably dislike spaces in .desktop file names as well, and that PR will take forever, so let's fix this anyway.
2022-02-25build-support/makeDesktopItem: make fully declarative, add all missing optionsK9001-50/+101
This updates makeDesktopItem to explicitly support all the fields in the spec, converts list-like fields to native Nix lists instead of semicolon-separated strings, and allows automatically generating [Desktop Action] sections from Nix code instead of hardcoding them as extraConfig strings.
2021-06-04build-support/make-desktopitem: add some missing fieldsAntoine Fontaine1-0/+4
2020-11-27make-desktopitem: desktop-file-utils is a nativeBuildInputFlorian Klink1-9/+12
This fixes cross-compilation of a NixOS with the manual enabled.
2020-10-15make-desktopitem: name was being used instead of desktopNameLeon Vack1-1/+1
Name should be used as filename and desktopName for the name attribute of the desktop entry (according to docs).
2020-10-14make-desktopitem: minor fixes and code stylepiegames1-10/+12
2020-06-29make-desktopitem: refactoring, documentation and improvementpiegames1-29/+37
- New parameter `extraDesktopEntries` to easily add some less usual entries to the desktop file - Rewrite of the core logic. Instead of a key-value-list, use an attribute set with nullable values to make it overridable - Added some comments - Some cosmetic/readability code refactors - I didn't like the doubly nested strings around the `fileValidation`
2020-03-31makeDesktopItem: make categories optionalOrivej Desh1-2/+2
"Application" is deprecated, "Other" is invalid, there are no generic categories, and the Categories fields is optional per the spec. Fixes the defaults after #75729.
2019-12-15makeDesktopItem: add desktop file validationworldofpeace1-3/+10
This uses desktop-file-validate in desktop-file-utils. It can be turned off if wanted.
2019-12-08makeDesktopItem: use runCommandLocalBjørn Forsman1-19/+14
This derivation only creates a simple text file, so it makes sense to do it locally. On my setup this reduces build time from 2.2s to 1.2s.
2017-06-05make-desktopitem: make genericName optionalLaverne Schrock1-13/+25
2016-02-29chromium: add StartupWMClass to desktop file. Fixes #12433Luca Bruno1-0/+2
2016-01-15makeDesktopItem: change `name` of the derivationsVladimír Čunát1-2/+2
The name wasn't suggesting what kind of stuff is in there; now it's the same as the name of the file that gets generated.
2015-12-12makeDesktopItem: add StartupNotify keyThomas Tuegel1-1/+4
2015-06-18makeDesktopItem: don't generated a deprecated keyVladimír Čunát1-2/+0
Fixes #4319. We even seem we never override it anywhere. http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.1.html#deprecated-items
2012-01-18* "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointlessEelco Dolstra1-1/+1
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2009-05-10Added desktop file generation function and desktop item for firefoxSander van der Burg1-0/+33
svn path=/nixpkgs/trunk/; revision=15529