6 , common-updater-scripts
11 stdenv.mkDerivation rec {
17 url = "https://github.com/hovancik/stretchly/releases/download/v${version}/stretchly-${version}.tar.xz";
18 sha256 = "sha256-/v74vDGxD5iiOPeBXPAaV42JpyBjeJSO/Lk88pCkDng=";
22 url = "https://raw.githubusercontent.com/hovancik/stretchly/v${version}/stretchly_128x128.png";
23 sha256 = "0whfg1fy2hjyk1lzpryikc1aj8agsjhfrb0bf7ggl6r9m8s1rvdl";
26 nativeBuildInputs = [ makeWrapper ];
31 mkdir -p $out/bin $out/share/${pname}/
32 mv resources/app.asar* $out/share/${pname}/
34 mkdir -p $out/share/applications
35 ln -s ${desktopItem}/share/applications/* $out/share/applications/
37 makeWrapper ${electron}/bin/electron $out/bin/${pname} \
38 --add-flags $out/share/${pname}/app.asar
44 updateScript = writeShellScript "update-stretchly" ''
47 # get the latest release version
48 latest_version=$(curl -s https://api.github.com/repos/hovancik/stretchly/releases/latest | jq --raw-output .tag_name | sed -e 's/^v//')
50 echo "updating to $latest_version..."
52 ${common-updater-scripts}/bin/update-source-version stretchly "$latest_version"
56 desktopItem = makeDesktopItem {
60 desktopName = "Stretchly";
61 genericName = "Stretchly";
62 categories = [ "Utility" ];
66 description = "A break time reminder app";
68 stretchly is a cross-platform electron app that reminds you to take
69 breaks when working on your computer. By default, it runs in your tray
70 and displays a reminder window containing an idea for a microbreak for 20
71 seconds every 10 minutes. Every 30 minutes, it displays a window
72 containing an idea for a longer 5 minute break.
74 homepage = "https://hovancik.net/stretchly";
75 downloadPage = "https://hovancik.net/stretchly/downloads/";
76 license = licenses.bsd2;
77 maintainers = with maintainers; [ _1000101 oxalica ];
78 platforms = platforms.linux;