Commit 5054d128 authored by Robert Helgesson's avatar Robert Helgesson Committed by Emery Hemingway
Browse files

amphetype: add desktop item

parent 1a72ea77
Loading
Loading
Loading
Loading
+16 −3
Original line number Diff line number Diff line
{ fetchFromGitLab, lib, python3Packages, qt5 }:
{ copyDesktopItems, fetchFromGitLab, lib, makeDesktopItem, python3Packages, qt5
}:

let
  pname = "amphetype";
  version = "1.0.0";
  description = "An advanced typing practice program";
in python3Packages.buildPythonApplication {
  inherit pname version;

@@ -21,10 +23,21 @@ in python3Packages.buildPythonApplication {

  doCheck = false;

  nativeBuildInputs = [ qt5.wrapQtAppsHook ];
  nativeBuildInputs = [ copyDesktopItems qt5.wrapQtAppsHook ];

  desktopItems = [
    (makeDesktopItem {
      name = pname;
      desktopName = "Amphetype";
      genericName = "Typing Practice";
      categories = [ "Education" "Qt" ];
      exec = pname;
      comment = description;
    })
  ];

  meta = with lib; {
    description = "An advanced typing practice program";
    inherit description;
    homepage = "https://gitlab.com/franksh/amphetype";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ rycee ];