13 # Using archive.org because the website doesn't store older versions of the software.
14 url = "https://web.archive.org/web/20240601173958/https%3A%2F%2Fdesktop.clickup.com%2Flinux";
15 hash = "sha256-jAOYDX9j+ZTqWsSg0rEckKZnErgsIV6+CtUv3M3wNqM=";
18 appimage = appimageTools.wrapType2 {
19 inherit pname version src;
20 extraPkgs = pkgs: [ pkgs.xorg.libxkbfile ];
23 appimageContents = appimageTools.extractType2 { inherit pname version src; };
25 stdenvNoCC.mkDerivation {
26 inherit pname version;
30 nativeBuildInputs = [ makeWrapper ];
38 mkdir -p $out/share/${pname}
39 cp -r ${appimageContents}/locales $out/share/${pname}
40 cp -r ${appimageContents}/resources $out/share/${pname}
41 cp -r --no-preserve=mode ${appimageContents}/usr/share/icons $out/share/
42 find $out/share/icons -name desktop.png -execdir mv {} clickup.png \;
44 install -m 444 -D ${appimageContents}/desktop.desktop $out/share/applications/clickup.desktop
46 substituteInPlace $out/share/applications/clickup.desktop \
47 --replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=clickup' \
48 --replace-fail 'Icon=desktop' 'Icon=clickup'
50 wrapProgram $out/bin/${pname} \
51 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}} --no-update"
57 description = "All in one project management solution";
58 homepage = "https://clickup.com";
59 license = lib.licenses.unfree;
60 mainProgram = "clickup";
61 maintainers = with lib.maintainers; [ heisfer ];
62 platforms = [ "x86_64-linux" ];