mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
fbda1dbfd6
Allow the macOS GLUT framework to be used automatically in many cases. Packages that specifically search for freeglut or require its additional APIs should still explicitly depend on it. Deliberately skip the Haskell package set, which is mostly automatically generated, and mupdf, which has its own fork of freeglut.
71 lines
1.3 KiB
Nix
71 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, SDL2
|
|
, SDL2_image
|
|
, SDL2_mixer
|
|
, fontconfig
|
|
, freealut
|
|
, libglut
|
|
, gettext
|
|
, libGL
|
|
, libGLU
|
|
, openal
|
|
, quesoglc
|
|
, clanlib
|
|
, libXrender
|
|
, libmikmod
|
|
, alsa-lib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "methane";
|
|
version = "2.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "methane";
|
|
owner = "rombust";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-STS2+wfZ8E1jpr0PYQOBQsztxhJU0Dt3IhWBE3sjdWE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gettext
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
SDL2
|
|
SDL2_image
|
|
SDL2_mixer
|
|
fontconfig
|
|
freealut
|
|
libglut
|
|
libGL
|
|
libGLU
|
|
openal
|
|
quesoglc
|
|
clanlib
|
|
libXrender
|
|
libmikmod
|
|
alsa-lib
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin/ $out/share/methane/ $out/share/docs/
|
|
cp methane $out/bin
|
|
cp -r resources/* $out/share/methane/.
|
|
cp -r docs/* $out/share/docs/.
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/rombust/methane";
|
|
description = "Clone of Taito's Bubble Bobble arcade game released for Amiga in 1993 by Apache Software";
|
|
mainProgram = "methane";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ nixinator ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|