1 { stdenv, lib, fetchurl, dpkg, makeWrapper, electron }:
3 stdenv.mkDerivation rec {
8 url = "https://web.archive.org/web/20211118160803/https://clockify-resources.s3.eu-central-1.amazonaws.com/downloads/Clockify_Setup.deb";
9 sha256 = "sha256-eVZ3OqM1eoWfST7Qu9o8VmLm8ntD+ETf/0aes6RY4Y8=";
30 substituteInPlace $out/share/applications/clockify.desktop \
31 --replace "/opt/Clockify" $out/bin
33 makeWrapper ${electron}/bin/electron $out/bin/clockify \
34 --add-flags $out/opt/Clockify/resources/app.asar
40 description = "Free time tracker and timesheet app that lets you track work hours across projects";
41 homepage = "https://clockify.me";
42 license = licenses.unfree;
43 maintainers = with maintainers; [ wolfangaukang ];
44 platforms = [ "x86_64-linux" ];