Files
nixpkgs/pkgs/by-name/xm/xmind/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

102 lines
1.8 KiB
Nix

{
lib,
stdenv,
fetchurl,
dpkg,
autoPatchelfHook,
glib,
at-spi2-atk,
cairo,
pango,
gtk3,
nss,
nspr,
cups,
dbus,
libdrm,
libxkbcommon,
alsa-lib,
expat,
xorg,
libgbm,
systemd,
libGL,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xmind";
version = "25.07.03033-202507241842";
src = fetchurl {
url = "https://dl3.xmind.app/Xmind-for-Linux-amd64bit-${finalAttrs.version}.deb";
hash = "sha256-ZD5sFILeMgyO+jV+oArGqqDogW33JE8y49KkclEUHzE=";
};
nativeBuildInputs = [
dpkg
autoPatchelfHook
];
buildInputs = [
(lib.getLib stdenv.cc.cc)
xorg.libX11
xorg.libXext
xorg.libxcb
xorg.libXcomposite
xorg.libXdamage
xorg.libXfixes
xorg.libXrandr
xorg.libxkbfile
glib
at-spi2-atk
cairo
pango
gtk3
nss
nspr
cups
dbus
libdrm
libxkbcommon
alsa-lib
expat
libgbm
];
runtimeDependencies = map lib.getLib [
systemd
];
installPhase = ''
runHook preInstall
substituteInPlace usr/share/applications/xmind.desktop \
--replace-fail "/opt/Xmind/xmind" "xmind"
cp -r usr $out
mkdir -p $out/opt $out/bin
cp -r opt/Xmind $out/opt/xmind
ln -s $out/opt/xmind/xmind $out/bin/xmind
runHook postInstall
'';
preFixup = ''
patchelf --add-needed libGL.so.1 \
--add-rpath ${
lib.makeLibraryPath [
libGL
]
} $out/opt/xmind/xmind
'';
meta = {
description = "All-in-one thinking tool featuring mind mapping, AI generation, and real-time collaboration";
homepage = "https://xmind.app";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
mainProgram = "xmind";
license = lib.licenses.unfree;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ michalrus ];
};
})