biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / office / timeular / default.nix
blobef6c931bcc6a6f49054bc9bfc5675633bc253e73
1 { lib
2 , fetchurl
3 , appimageTools
4 , libsecret
5 }:
7 let
8   version = "6.7.5";
9   pname = "timeular";
11   src = fetchurl {
12     url = "https://s3.amazonaws.com/timeular-desktop-packages/linux/production/Timeular-${version}.AppImage";
13     hash = "sha256-b/I34f8fGgPr4+fZJ+2cb+Xi/AvotxNHYg7IaLTByPk=";
14   };
16   appimageContents = appimageTools.extractType2 {
17     inherit pname version src;
18   };
19 in appimageTools.wrapType2 rec {
20   inherit pname version src;
22   extraPkgs = pkgs: with pkgs; [
23     libsecret
24   ];
26   extraInstallCommands = ''
27     mv $out/bin/{${pname}-${version},${pname}}
28     install -m 444 -D ${appimageContents}/timeular.desktop $out/share/applications/timeular.desktop
29     install -m 444 -D ${appimageContents}/timeular.png $out/share/icons/hicolor/512x512/apps/timeular.png
30     substituteInPlace $out/share/applications/timeular.desktop \
31       --replace "Exec=AppRun --no-sandbox %U" "Exec=$out/bin/${pname}"
32   '';
34   meta = with lib; {
35     description = "Timetracking by flipping 8-sided dice";
36     longDescription = ''
37       The Timeular Tracker is an 8-sided dice that sits on your desk.
38       Assign an activity to each side and flip to start tracking your time.
39       The desktop app tell you where every minute of your day is spent.
40     '';
41     homepage = "https://timeular.com";
42     license = licenses.unfree;
43     maintainers = with maintainers; [ ktor ];
44     platforms = [ "x86_64-linux" ];
45     mainProgram = "timeular";
46   };