mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
frogatto: init at 0.0.2018-12-09 (#52989)
This commit is contained in:
parent
e0b3d65baa
commit
108588b75b
@ -391,6 +391,11 @@
|
|||||||
github = "asppsa";
|
github = "asppsa";
|
||||||
name = "Alastair Pharo";
|
name = "Alastair Pharo";
|
||||||
};
|
};
|
||||||
|
astro = {
|
||||||
|
email = "astro@spaceboyz.net";
|
||||||
|
github = "astro";
|
||||||
|
name = "Astro";
|
||||||
|
};
|
||||||
astsmtl = {
|
astsmtl = {
|
||||||
email = "astsmtl@yandex.ru";
|
email = "astsmtl@yandex.ru";
|
||||||
github = "astsmtl";
|
github = "astsmtl";
|
||||||
|
26
pkgs/games/frogatto/data.nix
Normal file
26
pkgs/games/frogatto/data.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ stdenv, fetchFromGitHub }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "frogatto-data";
|
||||||
|
version = "unstable-2018-12-18";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "frogatto";
|
||||||
|
repo = "frogatto";
|
||||||
|
# master branch as of 2018-12-18
|
||||||
|
rev = "8f261b5d3fca3c88e6a534316a28378cf687d3e5";
|
||||||
|
sha256 = "0nyfwfyy5gxp61ydna299nq9p5wra9mk0bf1drdngg6bwws1hrqx";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/share/frogatto/modules
|
||||||
|
cp -ar . $out/share/frogatto/modules/frogatto
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://github.com/frogatto/frogatto;
|
||||||
|
description = "Data files to the frogatto game";
|
||||||
|
license = with licenses; [ cc-by-30 unfree ];
|
||||||
|
maintainers = with maintainers; [ astro ];
|
||||||
|
};
|
||||||
|
}
|
43
pkgs/games/frogatto/default.nix
Normal file
43
pkgs/games/frogatto/default.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{ lib, buildEnv, stdenv, callPackage, makeWrapper, makeDesktopItem }:
|
||||||
|
|
||||||
|
let
|
||||||
|
description = "Action-adventure game, starring a certain quixotic frog";
|
||||||
|
engine = callPackage ./engine.nix { };
|
||||||
|
data = callPackage ./data.nix { };
|
||||||
|
desktopItem = makeDesktopItem {
|
||||||
|
name = "frogatto";
|
||||||
|
exec = "frogatto";
|
||||||
|
startupNotify = "true";
|
||||||
|
icon = "${data}/share/frogatto/modules/frogatto/images/os/frogatto-icon.png";
|
||||||
|
comment = description;
|
||||||
|
desktopName = "Frogatto";
|
||||||
|
genericName = "frogatto";
|
||||||
|
categories = "Application;Game;ArcadeGame;";
|
||||||
|
};
|
||||||
|
version = "unstable-2018-12-18";
|
||||||
|
in buildEnv rec {
|
||||||
|
name = "frogatto-${version}";
|
||||||
|
|
||||||
|
buildInputs = [ makeWrapper ];
|
||||||
|
paths = [ engine data desktopItem ];
|
||||||
|
pathsToLink = [
|
||||||
|
"/bin"
|
||||||
|
"/share/frogatto/data"
|
||||||
|
"/share/frogatto/images"
|
||||||
|
"/share/frogatto/modules"
|
||||||
|
"/share/applications"
|
||||||
|
];
|
||||||
|
|
||||||
|
postBuild = ''
|
||||||
|
wrapProgram $out/bin/frogatto \
|
||||||
|
--run "cd $out/share/frogatto"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://frogatto.com;
|
||||||
|
description = description;
|
||||||
|
license = with licenses; [ cc-by-30 unfree ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ astro ];
|
||||||
|
};
|
||||||
|
}
|
50
pkgs/games/frogatto/engine.nix
Normal file
50
pkgs/games/frogatto/engine.nix
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, bash, which
|
||||||
|
, boost, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf
|
||||||
|
, glew, zlib, icu, pkgconfig, cairo, libvpx }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "anura-engine";
|
||||||
|
version = "unstable-2018-11-28";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "anura-engine";
|
||||||
|
repo = "anura";
|
||||||
|
# trunk branch as of 2018-11-28
|
||||||
|
rev = "8070111467802dc772c0a6c7806ecd16b0bcdaa9";
|
||||||
|
sha256 = "0xbqwfmws69n7iiz17n93h4jiw39cwyf7hxw0qi2c8cccr37b1nr";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
which pkgconfig
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
boost
|
||||||
|
SDL2
|
||||||
|
SDL2_image
|
||||||
|
SDL2_mixer
|
||||||
|
SDL2_ttf
|
||||||
|
glew
|
||||||
|
zlib
|
||||||
|
icu
|
||||||
|
cairo
|
||||||
|
libvpx
|
||||||
|
];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin $out/share/frogatto
|
||||||
|
cp -ar data images modules $out/share/frogatto/
|
||||||
|
cp -a anura $out/bin/frogatto
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://github.com/anura-engine/anura;
|
||||||
|
description = "Game engine used by Frogatto";
|
||||||
|
license = licenses.zlib;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ astro ];
|
||||||
|
};
|
||||||
|
}
|
@ -20628,6 +20628,8 @@ in
|
|||||||
|
|
||||||
frotz = callPackage ../games/frotz { };
|
frotz = callPackage ../games/frotz { };
|
||||||
|
|
||||||
|
frogatto = callPackage ../games/frogatto { };
|
||||||
|
|
||||||
fsg = callPackage ../games/fsg {
|
fsg = callPackage ../games/fsg {
|
||||||
wxGTK = wxGTK28.override { unicode = false; };
|
wxGTK = wxGTK28.override { unicode = false; };
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user