1 { lib, stdenv, fetchFromGitHub, qmake, qtbase, qttools, wrapQtAppsHook, copyDesktopItems }:
3 let datapath = "$out/share/XaoS";
4 in stdenv.mkDerivation rec {
7 outputs = [ "out" "man" ];
9 src = fetchFromGitHub {
10 owner = "xaos-project";
12 rev = "release-${version}";
13 hash = "sha256-JLF8Mz/OHZEEJG/aryKQuJ6B5R8hPJdvln7mbKoqXFU=";
16 nativeBuildInputs = [ qmake qttools wrapQtAppsHook copyDesktopItems ];
17 buildInputs = [ qtbase ];
19 QMAKE_LRELEASE = "lrelease";
20 DEFINES = [ "USE_OPENGL" "USE_FLOAT128" ];
23 substituteInPlace src/include/config.h \
24 --replace "/usr/share/XaoS" "${datapath}"
27 desktopItems = [ "xdg/xaos.desktop" ];
32 install -D bin/xaos "$out/bin/xaos"
34 mkdir -p "${datapath}"
35 cp -r tutorial examples catalogs "${datapath}"
37 install -D "xdg/${pname}.png" "$out/share/icons/${pname}.png"
39 install -D doc/xaos.6 "$man/man6/xaos.6"
44 description = "Real-time interactive fractal zoomer";
46 homepage = "https://xaos-project.github.io/";
47 license = lib.licenses.gpl2Plus;
48 platforms = [ "x86_64-linux" ];
49 maintainers = with lib.maintainers; [ ehmry ];