Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 45 lines 1.4 kB view raw
1{ 2 lib, 3 fetchurl, 4 appimageTools, 5}: 6 7let 8 version = "6.9.1"; 9 pname = "timeular"; 10 11 src = fetchurl { 12 url = "https://s3.amazonaws.com/timeular-desktop-packages/linux/production/Timeular-${version}.AppImage"; 13 hash = "sha256-oXdalYfysZ4Jb46eHABSkiWThMuc2JGCmP/mk0vCjkE="; 14 }; 15 16 appimageContents = appimageTools.extractType2 { 17 inherit pname version src; 18 }; 19in 20appimageTools.wrapType2 rec { 21 inherit pname version src; 22 23 extraPkgs = pkgs: [ pkgs.libsecret ]; 24 25 extraInstallCommands = '' 26 install -m 444 -D ${appimageContents}/timeular.desktop $out/share/applications/timeular.desktop 27 install -m 444 -D ${appimageContents}/timeular.png $out/share/icons/hicolor/512x512/apps/timeular.png 28 substituteInPlace $out/share/applications/timeular.desktop \ 29 --replace "Exec=AppRun --no-sandbox %U" "Exec=$out/bin/${pname}" 30 ''; 31 32 meta = with lib; { 33 description = "Timetracking by flipping 8-sided dice"; 34 longDescription = '' 35 The Timeular Tracker is an 8-sided dice that sits on your desk. 36 Assign an activity to each side and flip to start tracking your time. 37 The desktop app tell you where every minute of your day is spent. 38 ''; 39 homepage = "https://timeular.com"; 40 license = licenses.unfree; 41 maintainers = with maintainers; [ ktor ]; 42 platforms = [ "x86_64-linux" ]; 43 mainProgram = "timeular"; 44 }; 45}