diff options
author | K900 <me@0upti.me> | 2022-02-22 17:56:15 +0300 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2022-02-25 13:40:38 -0800 |
commit | cb2cfba6f7690d4b8754b0dd5a504efe93d7f44d (patch) | |
tree | 63bf69cdc1c296e10bf6543aa890855cccf1da57 /pkgs/games/unvanquished | |
parent | 0c713dbed40dd87090a4632cffc7b088653f35cb (diff) |
treewide: switch all desktop file generators to new API
Notably: - remove explicit arguments that match the defaults - convert everything to the right Nix types
Diffstat (limited to 'pkgs/games/unvanquished')
-rw-r--r-- | pkgs/games/unvanquished/default.nix | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/pkgs/games/unvanquished/default.nix b/pkgs/games/unvanquished/default.nix index f3f8c1413dbc7..191d8c2180705 100644 --- a/pkgs/games/unvanquished/default.nix +++ b/pkgs/games/unvanquished/default.nix @@ -135,25 +135,17 @@ in stdenv.mkDerivation rec { desktopName = "Unvanquished"; comment = "FPS/RTS Game - Aliens vs. Humans"; icon = "unvanquished"; - terminal = false; exec = "unvanquished"; - categories = "Game;ActionGame;StrategyGame;"; - # May or may not work + categories = [ "Game" "ActionGame" "StrategyGame" ]; prefersNonDefaultGPU = true; - fileValidation = false; # it doesn't like PrefersNonDefaultGPU - # yes, PrefersNonDefaultGPU is standard: - # https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html }) (makeDesktopItem { name = "net.unvanquished.UnvanquishedProtocolHandler.desktop"; desktopName = "Unvanquished (protocol handler)"; noDisplay = true; - terminal = false; exec = "unvanquished -connect %u"; - mimeType = "x-scheme-handler/unv"; - # May or may not work + mimeTypes = [ "x-scheme-handler/unv" ]; prefersNonDefaultGPU = true; - fileValidation = false; # it doesn't like PrefersNonDefaultGPU }) ]; |