depot/third_party/nixpkgs/pkgs/games/njam/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

28 lines
648 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 = "http://trackballs.sourceforge.net/";
description = "Cross-platform pacman-like game";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
};
}