mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #253113 from hbjydev/init-ticktick-pkg
ticktick: init at 1.0.80
This commit is contained in:
commit
c9895de25c
@ -6717,6 +6717,12 @@
|
||||
githubId = 1379411;
|
||||
name = "Georg Haas";
|
||||
};
|
||||
hbjydev = {
|
||||
email = "hayden@kuraudo.io";
|
||||
github = "hbjydev";
|
||||
githubId = 22327045;
|
||||
name = "Hayden Young";
|
||||
};
|
||||
hbunke = {
|
||||
email = "bunke.hendrik@gmail.com";
|
||||
github = "hbunke";
|
||||
|
77
pkgs/applications/office/ticktick/default.nix
Normal file
77
pkgs/applications/office/ticktick/default.nix
Normal file
@ -0,0 +1,77 @@
|
||||
{ lib
|
||||
, fetchurl
|
||||
, stdenv
|
||||
, wrapGAppsHook
|
||||
, dpkg
|
||||
, autoPatchelfHook
|
||||
, glibc
|
||||
, gcc-unwrapped
|
||||
, nss
|
||||
, libdrm
|
||||
, mesa
|
||||
, alsa-lib
|
||||
, xdg-utils
|
||||
, systemd
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "ticktick";
|
||||
version = "1.0.80";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://d2atcrkye2ik4e.cloudfront.net/download/linux/linux_deb_x64/${finalAttrs.pname}-${finalAttrs.version}-amd64.deb";
|
||||
hash = "sha256-EK+8NFEim2gcFj9t6AGYdGVlyFj9Yq7NaOia3XKy3cc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
wrapGAppsHook
|
||||
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; {
|
||||
description = "A powerful to-do & task management app with seamless cloud synchronization across all your devices";
|
||||
homepage = "https://ticktick.com/home/";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ hbjydev ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
})
|
@ -12323,6 +12323,8 @@ with pkgs;
|
||||
|
||||
teapot = callPackage ../applications/office/teapot { };
|
||||
|
||||
ticktick = callPackage ../applications/office/ticktick { };
|
||||
|
||||
pyditz = callPackage ../applications/misc/pyditz {
|
||||
pythonPackages = python3Packages;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user