diff options
author | nixinator <33lockdown33@protonmail.com> | 2021-04-13 20:21:37 +0100 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-05-02 18:12:31 -0700 |
commit | d5a0b50f2653f9792f62138edbff70c789f233ab (patch) | |
tree | aa96cc0b96a2e2d6a28c60c9e11fc994033efa8b /pkgs/games/methane | |
parent | 11bb46fdc63db2f00c7f458f871d2015e1f4fe6e (diff) | |
download | nixpkgs-d5a0b50f2653f9792f62138edbff70c789f233ab.tar nixpkgs-d5a0b50f2653f9792f62138edbff70c789f233ab.tar.gz nixpkgs-d5a0b50f2653f9792f62138edbff70c789f233ab.tar.bz2 nixpkgs-d5a0b50f2653f9792f62138edbff70c789f233ab.tar.lz nixpkgs-d5a0b50f2653f9792f62138edbff70c789f233ab.tar.xz nixpkgs-d5a0b50f2653f9792f62138edbff70c789f233ab.tar.zst nixpkgs-d5a0b50f2653f9792f62138edbff70c789f233ab.zip |
methane: init at 2.0.1
Diffstat (limited to 'pkgs/games/methane')
-rw-r--r-- | pkgs/games/methane/default.nix | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/games/methane/default.nix b/pkgs/games/methane/default.nix new file mode 100644 index 00000000000..17c9dc42567 --- /dev/null +++ b/pkgs/games/methane/default.nix @@ -0,0 +1,70 @@ +{ lib +, stdenv +, fetchFromGitHub +, pkg-config +, SDL2 +, SDL2_image +, SDL2_mixer +, fontconfig +, freealut +, freeglut +, gettext +, libGL +, libGLU +, openal +, quesoglc +, clanlib +, libXrender +, libmikmod +, alsaLib +}: + +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 + freeglut + libGL + libGLU + openal + quesoglc + clanlib + libXrender + libmikmod + alsaLib + ]; + + 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 = "A clone of Taito's Bubble Bobble arcade game released for Amiga in 1993 by Apache Software"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ nixinator ]; + platforms = [ "x86_64-linux" ]; + }; +} |