nixpkgs/pkgs/games/freedink/default.nix

62 lines
1.6 KiB
Nix
Raw Normal View History

2021-01-15 04:31:39 +00:00
{ lib, stdenv, fetchurl, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_gfx
, pkg-config, intltool, fontconfig, libzip, zip, zlib }:
2013-02-28 15:34:19 +00:00
let
version = "1.08.20121209";
freedink_data = stdenv.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "freedink-data";
inherit version;
2013-02-28 15:34:19 +00:00
src = fetchurl {
2019-08-13 22:52:01 +01:00
url = "mirror://gnu/freedink/${pname}-${version}.tar.gz";
2013-02-28 15:34:19 +00:00
sha256 = "1mhns09l1s898x18ahbcy9gabrmgsr8dv7pm0a2ivid8mhxahn1j";
};
prePatch = "substituteInPlace Makefile --replace /usr/local $out";
};
in stdenv.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "freedink";
inherit version;
src = fetchurl {
2019-08-13 22:52:01 +01:00
url = "mirror://gnu/freedink/${pname}-${version}.tar.gz";
2013-02-28 15:34:19 +00:00
sha256 = "19xximbcm6506kvpf3s0q96697kmzca3yrjdr6dgphklp33zqsqr";
};
2013-02-28 15:34:19 +00:00
buildInputs = [
SDL SDL_mixer SDL_image SDL_ttf SDL_gfx
pkg-config intltool fontconfig libzip zip zlib
2013-02-28 15:34:19 +00:00
];
preConfigure = ''
# Build fails on Linux with windres.
export ac_cv_prog_ac_ct_WINDRES=
'';
2013-02-28 15:34:19 +00:00
postInstall = ''
mkdir -p "$out/share/"
ln -s ${freedink_data}/share/dink "$out/share/"
'';
enableParallelBuilding = true;
meta = {
2013-02-28 15:34:19 +00:00
description = "A free, portable and enhanced version of the Dink Smallwood game engine";
2013-02-28 15:34:19 +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.
'';
homepage = "http://www.freedink.org/";
2021-01-15 04:31:39 +00:00
license = lib.licenses.gpl3Plus;
2021-01-15 04:31:39 +00:00
maintainers = [ lib.maintainers.bjg ];
platforms = lib.platforms.all;
hydraPlatforms = lib.platforms.linux; # sdl-config times out on darwin
};
}