@ -1,25 +1,21 @@
{ lib , stdenv , fetchzip , fltk , zlib , xdg-utils , xorg , libjpeg , libGL }:
{ lib , stdenv , fetchzip , fltk , zlib , xdg-utils , xorg , libjpeg , libGLU }:
stdenv . mkDerivation rec {
pname = " e u r e k a - e d i t o r " ;
version = " 1 . 2 1 " ;
shortver = " 1 2 1 " ;
version = " 1 . 2 7 b " ;
src = fetchzip {
url = " m i r r o r : / / s o u r c e f o r g e / e u r e k a - e d i t o r / E u r e k a / ${ version } / e u r e k a - ${ short ver} - s o u r c e . t a r . g z " ;
sha256 = " 0 f p j 1 3 a q 4 w h 3 f 7 4 7 3 c d c 5 j k f 1 c 7 1 j i i q m j c 0 i h q a 0 n m 3 h i c 1 d 4 y v " ;
url = " m i r r o r : / / s o u r c e f o r g e / e u r e k a - e d i t o r / E u r e k a / ${ lib . versions . majorMinor version } / e u r e k a - ${ version } - s o u r c e . t a r . g z " ;
sha256 = " 0 7 5 w 7 x x s g b g h 6 d h n d c 1 p f x b 2 h 1 s 5 f h s w 2 8 y l 1 c 0 2 5 g m x 9 b b 4 v 3 b f " ;
} ;
buildInputs = [ fltk zlib xdg-utils libjpeg xorg . libXinerama libGL ] ;
buildInputs = [ fltk zlib xdg-utils libjpeg xorg . libXinerama libGLU ] ;
enableParallelBuilding = true ;
preBuild = ''
substituteInPlace src/main.cc \
- - replace /usr/local $ out
substituteInPlace Makefile \
- - replace /usr/local $ out \
- - replace " - o r o o t " " "
postPatch = ''
substituteInPlace src/main.cc - - replace /usr/local $ out
substituteInPlace Makefile - - replace /usr/local $ out
'' ;
preInstall = ''
@ -32,9 +28,9 @@ stdenv.mkDerivation rec {
meta = with lib ; {
homepage = " h t t p : / / e u r e k a - e d i t o r . s o u r c e f o r g e . n e t " ;
description = " A m a p e d i t o r f o r t h e c l a s s i c D O O M g a m e s , a n d a f e w r e l a t e d g a m e s s u c h a s H e r e t i c a n d H e x e n " ;
license = licenses . gpl2 ;
license = licenses . gpl2Plus ;
platforms = platforms . all ;
broken = stdenv . isD arwin ;
badPlatforms = platforms . d arwin ;
maintainers = with maintainers ; [ neonfuz ] ;
} ;
}