Age | Commit message (Collapse) | Author | Files | Lines |
|
https://nixos.org/manual/nix/stable/language/builtins.html#builtins-isNull
|
|
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
|
|
This fixes cross-compilation of a NixOS with the manual enabled.
|
|
Name should be used as filename and desktopName for the name attribute of the desktop entry (according to docs).
|
|
|
|
- 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`
|
|
"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.
|
|
This uses desktop-file-validate in desktop-file-utils.
It can be turned off if wanted.
|
|
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.
|
|
|
|
|
|
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.
|
|
|
|
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
|
|
function, so obsolete it.
svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
|
|
svn path=/nixpkgs/trunk/; revision=15529
|