1 { stdenv, lib, fetchurl, makeWrapper, makeDesktopItem, copyDesktopItems, electron }:
6 url = "https://raw.githubusercontent.com/Splode/pomotroid/v${version}/static/icon.png";
7 sha256 = "sha256-BEPoOBErw5ZCeK4rtdxdwZZLimbpglu1Cu++4xzuVUs=";
10 in stdenv.mkDerivation rec {
15 url = "https://github.com/Splode/pomotroid/releases/download/v${version}/${pname}-${version}-linux.tar.gz";
16 sha256 = "sha256-AwpVnvwWQd/cgmZvtr5NprnLyeXz6ym4Fywc808tcSc=";
29 comment = meta.description;
30 desktopName = "Pomotroid";
31 genericName = "Pomodoro Application";
41 mkdir -p $out/opt/pomotroid $out/share/pomotroid $out/share/pixmaps
43 cp -r ./ $out/opt/pomotroid
44 mv $out/opt/pomotroid/{locales,resources} $out/share/pomotroid
45 cp ${appIcon} $out/share/pixmaps/pomotroid.png
47 makeWrapper ${electron}/bin/electron $out/bin/pomotroid \
48 --add-flags $out/share/pomotroid/resources/app.asar
54 description = "Simple and visually-pleasing Pomodoro timer";
55 homepage = "https://splode.github.io/pomotroid";
56 license = licenses.mit;
57 maintainers = with maintainers; [ wolfangaukang ];
58 platforms = [ "x86_64-linux" ];