Merge pull request #116460 from AndersonTorres/new-chromium-bsu
Chromium BSU game
This commit is contained in:
commit
5bbc8251b2
@ -1,40 +1,47 @@
|
|||||||
{ lib, stdenv, fetchurl, freetype, libGL, libGLU, OpenGL }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, freetype
|
||||||
|
, libGL
|
||||||
|
, libGLU
|
||||||
|
, OpenGL
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
name = "ftgl-2.1.3-rc5";
|
pname = "ftgl";
|
||||||
in
|
version = "2.1.3-rc5";
|
||||||
stdenv.mkDerivation {
|
|
||||||
inherit name;
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/ftgl/${name}.tar.gz";
|
url = "mirror://sourceforge/${pname}-${version}.tar.gz";
|
||||||
sha256 = "0nsn4s6vnv5xcgxcw6q031amvh2zfj2smy1r5mbnjj2548hxcn2l";
|
hash = "sha256-VFjWISJFSGlXLTn4qoV0X8BdVRgAG876Y71su40mVls=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ freetype ]
|
buildInputs = [
|
||||||
++ (if stdenv.isDarwin then
|
freetype
|
||||||
[ OpenGL ]
|
] ++ (if stdenv.isDarwin then [
|
||||||
else
|
OpenGL
|
||||||
[ libGL libGLU ])
|
] else [
|
||||||
;
|
libGL
|
||||||
|
libGLU
|
||||||
|
]);
|
||||||
|
|
||||||
configureFlags = [ "--with-ft-prefix=${lib.getDev freetype}" ];
|
configureFlags = [
|
||||||
|
"--with-ft-prefix=${lib.getDev freetype}"
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "https://sourceforge.net/apps/mediawiki/ftgl/";
|
homepage = "https://sourceforge.net/apps/mediawiki/ftgl/";
|
||||||
description = "Font rendering library for OpenGL applications";
|
description = "Font rendering library for OpenGL applications";
|
||||||
license = lib.licenses.gpl3Plus;
|
|
||||||
|
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
FTGL is a free cross-platform Open Source C++ library that uses
|
FTGL is a free cross-platform Open Source C++ library that uses Freetype2
|
||||||
Freetype2 to simplify rendering fonts in OpenGL applications. FTGL
|
to simplify rendering fonts in OpenGL applications. FTGL supports bitmaps,
|
||||||
supports bitmaps, pixmaps, texture maps, outlines, polygon mesh,
|
pixmaps, texture maps, outlines, polygon mesh, and extruded polygon
|
||||||
and extruded polygon rendering modes.
|
rendering modes.
|
||||||
'';
|
'';
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
platforms = lib.platforms.unix;
|
maintainers = with maintainers; [ AndersonTorres ];
|
||||||
maintainers = [];
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
38
pkgs/development/libraries/glpng/default.nix
Normal file
38
pkgs/development/libraries/glpng/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "fastnlo_toolkit";
|
pname = "fastnlo_toolkit";
|
||||||
@ -9,8 +20,19 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1h41xnqcz401x3zbs8i2dsb4xlhbv8i5ps0561p6y7gcyridgcbl";
|
sha256 = "1h41xnqcz401x3zbs8i2dsb4xlhbv8i5ps0561p6y7gcyridgcbl";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ boost fastjet gfortran gfortran.cc.lib lhapdf python2 root yoda ];
|
buildInputs = [
|
||||||
propagatedBuildInputs = [ zlib ];
|
boost
|
||||||
|
fastjet
|
||||||
|
gfortran
|
||||||
|
gfortran.cc.lib
|
||||||
|
lhapdf
|
||||||
|
python2
|
||||||
|
root
|
||||||
|
yoda
|
||||||
|
];
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
zlib
|
||||||
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace ./fastnlotoolkit/Makefile.in \
|
substituteInPlace ./fastnlotoolkit/Makefile.in \
|
||||||
@ -23,11 +45,22 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "A computer code to create and evaluate fast interpolation tables of pre-computed coefficients in perturbation theory for observables in hadron-induced processes";
|
homepage = "http://fastnlo.hepforge.org";
|
||||||
license = lib.licenses.gpl3;
|
description = "Fast pQCD calculations for hadron-induced processes";
|
||||||
homepage = "http://fastnlo.hepforge.org";
|
longDescription = ''
|
||||||
platforms = lib.platforms.unix;
|
The fastNLO project provides computer code to create and evaluate fast
|
||||||
maintainers = with lib.maintainers; [ veprbl ];
|
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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
68
pkgs/games/chromium-bsu/default.nix
Normal file
68
pkgs/games/chromium-bsu/default.nix
Normal 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
|
@ -17656,6 +17656,8 @@ in
|
|||||||
|
|
||||||
zziplib = callPackage ../development/libraries/zziplib { };
|
zziplib = callPackage ../development/libraries/zziplib { };
|
||||||
|
|
||||||
|
glpng = callPackage ../development/libraries/glpng { };
|
||||||
|
|
||||||
gsignond = callPackage ../development/libraries/gsignond {
|
gsignond = callPackage ../development/libraries/gsignond {
|
||||||
plugins = [];
|
plugins = [];
|
||||||
};
|
};
|
||||||
@ -26865,6 +26867,8 @@ in
|
|||||||
|
|
||||||
chiaki = libsForQt5.callPackage ../games/chiaki { };
|
chiaki = libsForQt5.callPackage ../games/chiaki { };
|
||||||
|
|
||||||
|
chromium-bsu = callPackage ../games/chromium-bsu { };
|
||||||
|
|
||||||
chocolateDoom = callPackage ../games/chocolate-doom { };
|
chocolateDoom = callPackage ../games/chocolate-doom { };
|
||||||
|
|
||||||
clonehero-unwrapped = pkgs.callPackage ../games/clonehero { };
|
clonehero-unwrapped = pkgs.callPackage ../games/clonehero { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user