10 stdenv.mkDerivation rec {
11 pname = "cubiomes-viewer";
14 src = fetchFromGitHub {
18 hash = "sha256-ORTFddzVGKXpy5V6zXJgCnwLwn/8cWKklpcoHkc6u34=";
19 fetchSubmodules = true;
23 substituteInPlace cubiomes-viewer.pro \
24 --replace '$$[QT_INSTALL_BINS]/lupdate' lupdate \
25 --replace '$$[QT_INSTALL_BINS]/lrelease' lrelease
39 # QMAKE_PRE_LINK is not executed (I dont know why)
40 make -C ./cubiomes libcubiomes CFLAGS="-DSTRUCT_CONFIG_OVERRIDE=1" all
47 cp cubiomes-viewer $out/bin
49 mkdir -p $out/share/{pixmaps,applications}
50 cp rc/icons/map.png $out/share/pixmaps/com.github.cubitect.cubiomes-viewer.png
51 cp etc/com.github.cubitect.cubiomes-viewer.desktop $out/share/applications
57 broken = stdenv.hostPlatform.isDarwin;
58 homepage = "https://github.com/Cubitect/cubiomes-viewer";
59 description = "Graphical Minecraft seed finder and map viewer";
60 mainProgram = "cubiomes-viewer";
62 Cubiomes Viewer provides a graphical interface for the efficient and flexible seed-finding
63 utilities provided by cubiomes and a map viewer for the Minecraft biomes and structure generation.
65 platforms = platforms.all;
66 license = licenses.gpl3Plus;
67 maintainers = with maintainers; [ hqurve ];