2018-08-16 22:36:57 +02:00
|
|
|
{ stdenv, fetchzip, fltk, zlib, xdg_utils, xorg, libjpeg, libGL }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "eureka-editor";
|
2018-08-16 22:36:57 +02:00
|
|
|
version = "1.21";
|
|
|
|
shortver = "121";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "mirror://sourceforge/eureka-editor/Eureka/${version}/eureka-${shortver}-source.tar.gz";
|
|
|
|
sha256 = "0fpj13aq4wh3f7473cdc5jkf1c71jiiqmjc0ihqa0nm3hic1d4yv";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ fltk zlib xdg_utils libjpeg xorg.libXinerama libGL ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace src/main.cc \
|
|
|
|
--replace /usr/local $out
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace /usr/local $out \
|
|
|
|
--replace "-o root " ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin $out/share/applications $out/share/icons $out/man/man6
|
|
|
|
cp misc/eureka.desktop $out/share/applications
|
|
|
|
cp misc/eureka.ico $out/share/icons
|
|
|
|
cp misc/eureka.6 $out/man/man6
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://eureka-editor.sourceforge.net";
|
2018-08-16 22:36:57 +02:00
|
|
|
description = "A map editor for the classic DOOM games, and a few related games such as Heretic and Hexen";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ neonfuz ];
|
|
|
|
};
|
|
|
|
}
|