about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-05-01 15:13:07 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-05-02 22:35:27 -0300
commitedc2464544d9cb2549f564a82b78c7b9796c78f9 (patch)
tree2a1f68614ae1189dd4fbfdfc6c8802e66b7c9248 /pkgs/games
parent4d2efae81d7868c9d0d9dac7f2a98b2867253b19 (diff)
eureka-editor: move to games/doom-ports
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/doom-ports/eureka-editor/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/games/doom-ports/eureka-editor/default.nix b/pkgs/games/doom-ports/eureka-editor/default.nix
new file mode 100644
index 0000000000000..6beae458d2930
--- /dev/null
+++ b/pkgs/games/doom-ports/eureka-editor/default.nix
@@ -0,0 +1,36 @@
+{ lib, stdenv, fetchzip, fltk, zlib, xdg-utils, xorg, libjpeg, libGLU }:
+
+stdenv.mkDerivation rec {
+  pname = "eureka-editor";
+  version = "1.27b";
+
+  src = fetchzip {
+    url = "mirror://sourceforge/eureka-editor/Eureka/${lib.versions.majorMinor version}/eureka-${version}-source.tar.gz";
+    sha256 = "075w7xxsgbgh6dhndc1pfxb2h1s5fhsw28yl1c025gmx9bb4v3bf";
+  };
+
+  buildInputs = [ fltk zlib xdg-utils libjpeg xorg.libXinerama libGLU ];
+
+  enableParallelBuilding = true;
+
+  postPatch = ''
+    substituteInPlace src/main.cc --replace /usr/local $out
+    substituteInPlace Makefile    --replace /usr/local $out
+  '';
+
+  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 lib; {
+    homepage = "https://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.gpl2Plus;
+    platforms = platforms.all;
+    badPlatforms = platforms.darwin;
+    maintainers = with maintainers; [ neonfuz ];
+  };
+}