2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchurl, SDL, SDL_image, SDL_mixer, SDL_net }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "njam";
|
|
|
|
version = "1.25";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-28 23:13:55 +00:00
|
|
|
url = "mirror://sourceforge/njam/njam-${version}-src.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0ysvqw017xkvddj957pdfmbmji7qi20nyr7f0zxvcvm6c7d3cc7s";
|
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
rm src/*.o
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ SDL SDL_image SDL_mixer SDL_net ];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
patches = [ ./logfile.patch ];
|
|
|
|
|
|
|
|
meta = {
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://trackballs.sourceforge.net/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Cross-platform pacman-like game";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|