diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-11-26 13:01:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-26 13:01:47 +0100 |
commit | 4f93a9c1bd3a79636f443bcd6a07f261262b506a (patch) | |
tree | 51c4f742b11360cd5cf190f13698e7ec1743c323 /pkgs/applications/office | |
parent | a94fa956d26e7967e2d1a492fdfe90156f64537f (diff) | |
parent | b5703dfc4b2a2afd0d2dcb1a29e08fab79cd9f88 (diff) |
Merge pull request #147266 from WolfangAukang/clockify
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r-- | pkgs/applications/office/clockify/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/applications/office/clockify/default.nix b/pkgs/applications/office/clockify/default.nix new file mode 100644 index 0000000000000..37afa6cc226f2 --- /dev/null +++ b/pkgs/applications/office/clockify/default.nix @@ -0,0 +1,47 @@ +{ stdenv, lib, fetchurl, dpkg, makeWrapper, electron }: + +stdenv.mkDerivation rec { + pname = "clockify"; + version = "2.0.3"; + + src = fetchurl { + url = "https://web.archive.org/web/20211118160803/https://clockify-resources.s3.eu-central-1.amazonaws.com/downloads/Clockify_Setup.deb"; + sha256 = "sha256-eVZ3OqM1eoWfST7Qu9o8VmLm8ntD+ETf/0aes6RY4Y8="; + }; + + nativeBuildInputs = [ + dpkg + makeWrapper + ]; + + dontBuild = true; + dontConfigure = true; + + unpackPhase = '' + dpkg-deb -x ${src} ./ + ''; + + installPhase = '' + runHook preInstall + + mv usr $out + mv opt $out + + substituteInPlace $out/share/applications/clockify.desktop \ + --replace "/opt/Clockify" $out/bin + + makeWrapper ${electron}/bin/electron $out/bin/clockify \ + --add-flags $out/opt/Clockify/resources/app.asar + + runHook postInstall + ''; + + 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 ]; + platforms = [ "x86_64-linux" ]; + + }; +} |