1 { lib, stdenv, fetchzip, fltk, zlib, xdg-utils, xorg, libjpeg, libGLU }:
3 stdenv.mkDerivation rec {
4 pname = "eureka-editor";
8 url = "mirror://sourceforge/eureka-editor/Eureka/${lib.versions.majorMinor version}/eureka-${version}-source.tar.gz";
9 sha256 = "075w7xxsgbgh6dhndc1pfxb2h1s5fhsw28yl1c025gmx9bb4v3bf";
12 buildInputs = [ fltk zlib xdg-utils libjpeg xorg.libXinerama libGLU ];
14 enableParallelBuilding = true;
17 substituteInPlace src/main.cc --replace /usr/local $out
18 substituteInPlace Makefile --replace /usr/local $out
22 mkdir -p $out/bin $out/share/applications $out/share/icons $out/man/man6
23 cp misc/eureka.desktop $out/share/applications
24 cp misc/eureka.ico $out/share/icons
25 cp misc/eureka.6 $out/man/man6
29 homepage = "https://eureka-editor.sourceforge.net";
30 description = "Map editor for the classic DOOM games, and a few related games such as Heretic and Hexen";
31 mainProgram = "eureka";
32 license = licenses.gpl2Plus;
33 platforms = platforms.all;
34 badPlatforms = platforms.darwin;
35 maintainers = with maintainers; [ neonfuz ];