2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, intltool, fontconfig, libzip, zip, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "1.08.20121209";
|
|
|
|
|
|
|
|
freedink_data = stdenv.mkDerivation rec {
|
|
|
|
pname = "freedink-data";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/freedink/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1mhns09l1s898x18ahbcy9gabrmgsr8dv7pm0a2ivid8mhxahn1j";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = "substituteInPlace Makefile --replace /usr/local $out";
|
|
|
|
};
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "freedink";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/freedink/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "19xximbcm6506kvpf3s0q96697kmzca3yrjdr6dgphklp33zqsqr";
|
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [ pkg-config intltool ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL SDL_mixer SDL_image SDL_ttf SDL_gfx
|
2022-10-21 18:38:19 +00:00
|
|
|
fontconfig libzip zip zlib
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# Build fails on Linux with windres.
|
|
|
|
export ac_cv_prog_ac_ct_WINDRES=
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/share/"
|
|
|
|
ln -s ${freedink_data}/share/dink "$out/share/"
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Free, portable and enhanced version of the Dink Smallwood game engine";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GNU FreeDink is a new and portable version of the Dink Smallwood
|
|
|
|
game engine, which runs the original game as well as its D-Mods,
|
|
|
|
with close compatibility, under multiple platforms.
|
|
|
|
'';
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://www.gnu.org/software/freedink/"; # Formerly http://www.freedink.org
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = [ ];
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
hydraPlatforms = lib.platforms.linux; # sdl-config times out on darwin
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|