2024-05-15 15:35:15 +00:00
|
|
|
{ lib
|
|
|
|
, appimageTools
|
|
|
|
, fetchurl }:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
appimageTools.wrapType2 rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "clockify";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.1.17.1354";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-05-15 15:35:15 +00:00
|
|
|
url = "https://web.archive.org/web/20240406052908/https://clockify.me/downloads/Clockify_Setup.AppImage";
|
|
|
|
hash = "sha256-G5VOAf6PrjHUsnk7IlXdqJ2D941cnggjuHkkgrOaVaA=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
extraInstallCommands =
|
|
|
|
let appimageContents = appimageTools.extract { inherit pname version src; };
|
|
|
|
in ''
|
|
|
|
install -Dm 444 ${appimageContents}/clockify.desktop -t $out/share/applications
|
|
|
|
install -Dm 444 ${appimageContents}/clockify.png -t $out/share/pixmaps
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
substituteInPlace $out/share/applications/clockify.desktop \
|
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
|
|
'';
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Free time tracker and timesheet app that lets you track work hours across projects";
|
|
|
|
homepage = "https://clockify.me";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
2023-11-16 04:20:00 +00:00
|
|
|
mainProgram = "clockify";
|
2021-12-06 16:07:01 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|