nixpkgs/pkgs/applications/misc/eureka-editor/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchzip, fltk, zlib, xdg-utils, xorg, libjpeg, libGLU }:
2018-08-16 20:36:57 +00:00
stdenv.mkDerivation rec {
pname = "eureka-editor";
version = "1.27b";
2018-08-16 20:36:57 +00:00
src = fetchzip {
url = "mirror://sourceforge/eureka-editor/Eureka/${lib.versions.majorMinor version}/eureka-${version}-source.tar.gz";
sha256 = "075w7xxsgbgh6dhndc1pfxb2h1s5fhsw28yl1c025gmx9bb4v3bf";
2018-08-16 20:36:57 +00:00
};
buildInputs = [ fltk zlib xdg-utils libjpeg xorg.libXinerama libGLU ];
2018-08-16 20:36:57 +00:00
enableParallelBuilding = true;
postPatch = ''
substituteInPlace src/main.cc --replace /usr/local $out
substituteInPlace Makefile --replace /usr/local $out
2018-08-16 20:36:57 +00:00
'';
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 = "http://eureka-editor.sourceforge.net";
2018-08-16 20:36:57 +00:00
description = "A map editor for the classic DOOM games, and a few related games such as Heretic and Hexen";
license = licenses.gpl2Plus;
2018-08-16 20:36:57 +00:00
platforms = platforms.all;
badPlatforms = platforms.darwin;
2018-08-16 20:36:57 +00:00
maintainers = with maintainers; [ neonfuz ];
};
}