nixpkgs-suyu/pkgs/games/njam/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

29 lines
675 B
Nix

{lib, stdenv, fetchurl, SDL, SDL_image, SDL_mixer, SDL_net }:
stdenv.mkDerivation rec {
pname = "njam";
version = "1.25";
src = fetchurl {
url = "mirror://sourceforge/njam/njam-${version}-src.tar.gz";
sha256 = "0ysvqw017xkvddj957pdfmbmji7qi20nyr7f0zxvcvm6c7d3cc7s";
};
preBuild = ''
rm src/*.o
'';
buildInputs = [ SDL SDL_image SDL_mixer SDL_net ];
hardeningDisable = [ "format" ];
patches = [ ./logfile.patch ];
meta = {
homepage = "https://trackballs.sourceforge.net/";
description = "Cross-platform pacman-like game";
mainProgram = "njam";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
};
}