5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{ lib
|
|
, fetchurl
|
|
, appimageTools
|
|
}:
|
|
|
|
let
|
|
version = "6.7.8";
|
|
pname = "timeular";
|
|
|
|
src = fetchurl {
|
|
url = "https://s3.amazonaws.com/timeular-desktop-packages/linux/production/Timeular-${version}.AppImage";
|
|
hash = "sha256-nMvbr2PQBWyrhY3mv/4wsdWPhNx5hLFaAp0Ey3nvp7g=";
|
|
};
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
inherit pname version src;
|
|
};
|
|
in appimageTools.wrapType2 rec {
|
|
inherit pname version src;
|
|
|
|
extraPkgs = pkgs: [ pkgs.libsecret ];
|
|
|
|
extraInstallCommands = ''
|
|
install -m 444 -D ${appimageContents}/timeular.desktop $out/share/applications/timeular.desktop
|
|
install -m 444 -D ${appimageContents}/timeular.png $out/share/icons/hicolor/512x512/apps/timeular.png
|
|
substituteInPlace $out/share/applications/timeular.desktop \
|
|
--replace "Exec=AppRun --no-sandbox %U" "Exec=$out/bin/${pname}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Timetracking by flipping 8-sided dice";
|
|
longDescription = ''
|
|
The Timeular Tracker is an 8-sided dice that sits on your desk.
|
|
Assign an activity to each side and flip to start tracking your time.
|
|
The desktop app tell you where every minute of your day is spent.
|
|
'';
|
|
homepage = "https://timeular.com";
|
|
license = licenses.unfree;
|
|
maintainers = with maintainers; [ ktor ];
|
|
platforms = [ "x86_64-linux" ];
|
|
mainProgram = "timeular";
|
|
};
|
|
}
|