Merge pull request #116460 from AndersonTorres/new-chromium-bsu

Chromium BSU game
This commit is contained in:
Anderson Torres 2021-03-17 22:23:57 -03:00 committed by GitHub
commit 5bbc8251b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 184 additions and 34 deletions

View File

@ -1,40 +1,47 @@
{ lib, stdenv, fetchurl, freetype, libGL, libGLU, OpenGL }:
{ lib
, stdenv
, fetchurl
, freetype
, libGL
, libGLU
, OpenGL
}:
let
name = "ftgl-2.1.3-rc5";
in
stdenv.mkDerivation {
inherit name;
stdenv.mkDerivation rec {
pname = "ftgl";
version = "2.1.3-rc5";
src = fetchurl {
url = "mirror://sourceforge/ftgl/${name}.tar.gz";
sha256 = "0nsn4s6vnv5xcgxcw6q031amvh2zfj2smy1r5mbnjj2548hxcn2l";
url = "mirror://sourceforge/${pname}-${version}.tar.gz";
hash = "sha256-VFjWISJFSGlXLTn4qoV0X8BdVRgAG876Y71su40mVls=";
};
buildInputs = [ freetype ]
++ (if stdenv.isDarwin then
[ OpenGL ]
else
[ libGL libGLU ])
;
buildInputs = [
freetype
] ++ (if stdenv.isDarwin then [
OpenGL
] else [
libGL
libGLU
]);
configureFlags = [ "--with-ft-prefix=${lib.getDev freetype}" ];
configureFlags = [
"--with-ft-prefix=${lib.getDev freetype}"
];
enableParallelBuilding = true;
meta = {
meta = with lib; {
homepage = "https://sourceforge.net/apps/mediawiki/ftgl/";
description = "Font rendering library for OpenGL applications";
license = lib.licenses.gpl3Plus;
longDescription = ''
FTGL is a free cross-platform Open Source C++ library that uses
Freetype2 to simplify rendering fonts in OpenGL applications. FTGL
supports bitmaps, pixmaps, texture maps, outlines, polygon mesh,
and extruded polygon rendering modes.
FTGL is a free cross-platform Open Source C++ library that uses Freetype2
to simplify rendering fonts in OpenGL applications. FTGL supports bitmaps,
pixmaps, texture maps, outlines, polygon mesh, and extruded polygon
rendering modes.
'';
platforms = lib.platforms.unix;
maintainers = [];
license = licenses.gpl3Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
};
}

View File

@ -0,0 +1,38 @@
{ lib
, stdenv
, fetchFromRepoOrCz
, cmake
, libGL
, libpng
, pkg-config
, zlib
}:
stdenv.mkDerivation rec {
pname = "glpng";
version = "1.46";
src = fetchFromRepoOrCz {
repo = "glpng";
rev = "v${version}";
hash = "sha256-C7EHaBN0PE/HJB6zcIaYU63+o7/MEz4WU1xr/kIOanM=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
libGL
libpng
zlib
];
meta = with lib; {
homepage = "https://repo.or.cz/glpng.git/blob_plain/HEAD:/glpng.htm";
description = "PNG loader for OpenGL";
license = licenses.mit;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
};
}

View File

@ -1,4 +1,15 @@
{ lib, stdenv, fetchurl, boost, fastjet, gfortran, lhapdf, python2, root, yoda, zlib }:
{ lib
, stdenv
, fetchurl
, boost
, fastjet
, gfortran
, lhapdf
, python2
, root
, yoda
, zlib
}:
stdenv.mkDerivation rec {
pname = "fastnlo_toolkit";
@ -9,8 +20,19 @@ stdenv.mkDerivation rec {
sha256 = "1h41xnqcz401x3zbs8i2dsb4xlhbv8i5ps0561p6y7gcyridgcbl";
};
buildInputs = [ boost fastjet gfortran gfortran.cc.lib lhapdf python2 root yoda ];
propagatedBuildInputs = [ zlib ];
buildInputs = [
boost
fastjet
gfortran
gfortran.cc.lib
lhapdf
python2
root
yoda
];
propagatedBuildInputs = [
zlib
];
preConfigure = ''
substituteInPlace ./fastnlotoolkit/Makefile.in \
@ -23,11 +45,22 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = {
description = "A computer code to create and evaluate fast interpolation tables of pre-computed coefficients in perturbation theory for observables in hadron-induced processes";
license = lib.licenses.gpl3;
homepage = "http://fastnlo.hepforge.org";
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ veprbl ];
meta = with lib; {
homepage = "http://fastnlo.hepforge.org";
description = "Fast pQCD calculations for hadron-induced processes";
longDescription = ''
The fastNLO project provides computer code to create and evaluate fast
interpolation tables of pre-computed coefficients in perturbation theory
for observables in hadron-induced processes.
This allows fast theory predictions of these observables for arbitrary
parton distribution functions (of regular shape), renormalization or
factorization scale choices, and/or values of alpha_s(Mz) as e.g. needed
in PDF fits or in systematic studies. Very time consuming complete
recalculations are thus avoided.
'';
license = licenses.gpl3Plus;
maintainers = with maintainers; [ veprbl ];
platforms = platforms.unix;
};
}

View File

@ -0,0 +1,68 @@
{ lib
, stdenv
, fetchurl
, SDL2
, SDL2_image
, SDL2_mixer
, fontconfig
, freealut
, freeglut
, ftgl
, gettext
, glpng
, libGL
, libGLU
, openal
, pkg-config
, quesoglc
}:
stdenv.mkDerivation rec {
pname = "chromium-bsu";
version = "0.9.16.1";
src = fetchurl {
url = "mirror://sourceforge/project/chromium-bsu/Chromium%20B.S.U.%20source%20code/${pname}-${version}.tar.gz";
hash = "sha256-ocFBo00ZpZYHroEWahmGTrjITPhrFVRi/tMabVbhYko=";
};
nativeBuildInputs = [
gettext
pkg-config
];
buildInputs = [
SDL2
SDL2_image
SDL2_mixer
fontconfig
freealut
freeglut
ftgl
glpng
libGL
libGLU
openal
quesoglc
];
# Autodetection is somewhat buggy; this is to avoid SLD1 to be loaded
configureFlags = [
"--disable-sdlimage"
"--disable-sdlmixer"
];
postInstall = ''
install -D misc/chromium-bsu.png $out/share/pixmaps/chromium-bsu.png
install -D misc/chromium-bsu.desktop $out/share/applications/chromium-bsu.desktop
'';
meta = with lib; {
homepage = "http://chromium-bsu.sourceforge.net/";
description = "A fast paced, arcade-style, top-scrolling space shooter";
license = licenses.artistic1;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
};
}
# TODO [ AndersonTorres ]: joystick; gothic uralic font

View File

@ -17656,6 +17656,8 @@ in
zziplib = callPackage ../development/libraries/zziplib { };
glpng = callPackage ../development/libraries/glpng { };
gsignond = callPackage ../development/libraries/gsignond {
plugins = [];
};
@ -26865,6 +26867,8 @@ in
chiaki = libsForQt5.callPackage ../games/chiaki { };
chromium-bsu = callPackage ../games/chromium-bsu { };
chocolateDoom = callPackage ../games/chocolate-doom { };
clonehero-unwrapped = pkgs.callPackage ../games/clonehero { };