nixpkgs/pkgs/by-name/cl/clockify/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
1012 B
Nix
Raw Normal View History

{ lib
, appimageTools
, fetchurl }:
2021-11-18 16:22:18 +00:00
appimageTools.wrapType2 rec {
2021-11-18 16:22:18 +00:00
pname = "clockify";
version = "2.1.17.1354";
2021-11-18 16:22:18 +00:00
src = fetchurl {
url = "https://web.archive.org/web/20240406052908/https://clockify.me/downloads/Clockify_Setup.AppImage";
hash = "sha256-G5VOAf6PrjHUsnk7IlXdqJ2D941cnggjuHkkgrOaVaA=";
2021-11-18 16:22:18 +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-11-18 16:22:18 +00:00
substituteInPlace $out/share/applications/clockify.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}'
'';
2021-11-18 16:22:18 +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 = [ ];
2023-11-11 16:59:03 +00:00
mainProgram = "clockify";
2021-11-18 16:22:18 +00:00
platforms = [ "x86_64-linux" ];
};
}