2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchzip, fltk, zlib, xdg-utils, xorg, libjpeg, libGL }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "eureka-editor";
|
|
|
|
version = "1.21";
|
|
|
|
shortver = "121";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "mirror://sourceforge/eureka-editor/Eureka/${version}/eureka-${shortver}-source.tar.gz";
|
|
|
|
sha256 = "0fpj13aq4wh3f7473cdc5jkf1c71jiiqmjc0ihqa0nm3hic1d4yv";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = [ fltk zlib xdg-utils libjpeg xorg.libXinerama libGL ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://eureka-editor.sourceforge.net";
|
|
|
|
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;
|
2020-11-30 08:33:03 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ neonfuz ];
|
|
|
|
};
|
|
|
|
}
|