16 stdenv.mkDerivation (finalAttrs: {
21 url = "https://d2atcrkye2ik4e.cloudfront.net/download/linux/linux_deb_x64/ticktick-${finalAttrs.version}-amd64.deb";
22 hash = "sha256-yoskJ7v0RgRZ16gs9UY1xf/PunLoFkNGKmVMkPJDPmM=";
41 # Needed to make the process get past zygote_linux fork()'ing
42 runtimeDependencies = [
49 mkdir -p "$out/share" "$out/opt/${finalAttrs.pname}" "$out/bin"
50 dpkg-deb --fsys-tarfile "$src" | tar --extract --directory="$out"
58 cp -av $out/opt/TickTick/* $out/opt/${finalAttrs.pname}
59 cp -av $out/usr/share/* $out/share
60 rm -rf $out/usr $out/opt/TickTick
61 ln -sf "$out/opt/${finalAttrs.pname}/${finalAttrs.pname}" "$out/bin/${finalAttrs.pname}"
63 substituteInPlace "$out/share/applications/${finalAttrs.pname}.desktop" \
64 --replace "Exec=/opt/TickTick/ticktick" "Exec=$out/bin/${finalAttrs.pname}"
70 description = "Powerful to-do & task management app with seamless cloud synchronization across all your devices";
71 homepage = "https://ticktick.com/home/";
72 license = licenses.unfree;
73 maintainers = with maintainers; [ hbjydev ];
74 platforms = [ "x86_64-linux" ];
75 sourceProvenance = with sourceTypes; [ binaryNativeCode ];