2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, stdenv
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2023-10-09 19:29:22 +00:00
|
|
|
, dpkg
|
|
|
|
, autoPatchelfHook
|
|
|
|
, glibc
|
|
|
|
, gcc-unwrapped
|
|
|
|
, nss
|
|
|
|
, libdrm
|
|
|
|
, mesa
|
|
|
|
, alsa-lib
|
|
|
|
, xdg-utils
|
|
|
|
, systemd
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "ticktick";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.0.30";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-07-27 06:49:29 +00:00
|
|
|
url = "https://d2atcrkye2ik4e.cloudfront.net/download/linux/linux_deb_x64/ticktick-${finalAttrs.version}-amd64.deb";
|
|
|
|
hash = "sha256-oo1ssIU6nYMBoEc888xAiTS7PHuEkoaC7KsPRTwL0ZA=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2023-10-09 19:29:22 +00:00
|
|
|
autoPatchelfHook
|
|
|
|
dpkg
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
nss
|
|
|
|
glibc
|
|
|
|
libdrm
|
|
|
|
gcc-unwrapped
|
|
|
|
mesa
|
|
|
|
alsa-lib
|
|
|
|
xdg-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
# Needed to make the process get past zygote_linux fork()'ing
|
|
|
|
runtimeDependencies = [
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
runHook preUnpack
|
|
|
|
|
|
|
|
mkdir -p "$out/share" "$out/opt/${finalAttrs.pname}" "$out/bin"
|
|
|
|
dpkg-deb --fsys-tarfile "$src" | tar --extract --directory="$out"
|
|
|
|
|
|
|
|
runHook postUnpack
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
cp -av $out/opt/TickTick/* $out/opt/${finalAttrs.pname}
|
|
|
|
cp -av $out/usr/share/* $out/share
|
|
|
|
rm -rf $out/usr $out/opt/TickTick
|
|
|
|
ln -sf "$out/opt/${finalAttrs.pname}/${finalAttrs.pname}" "$out/bin/${finalAttrs.pname}"
|
|
|
|
|
|
|
|
substituteInPlace "$out/share/applications/${finalAttrs.pname}.desktop" \
|
|
|
|
--replace "Exec=/opt/TickTick/ticktick" "Exec=$out/bin/${finalAttrs.pname}"
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Powerful to-do & task management app with seamless cloud synchronization across all your devices";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://ticktick.com/home/";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ hbjydev ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
|
|
};
|
|
|
|
})
|