mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 20:02:58 +03:00
Adding Quantum Minigolf game
This commit is contained in:
parent
59de62317d
commit
3022fff7db
@ -75,7 +75,7 @@ let
|
|||||||
{
|
{
|
||||||
cfgText = if cfg.rsaCertFile == null then ""
|
cfgText = if cfg.rsaCertFile == null then ""
|
||||||
else ''
|
else ''
|
||||||
sslEnable=YES
|
ssl_enable=YES
|
||||||
rsa_cert_file=${cfg.rsaCertFile}
|
rsa_cert_file=${cfg.rsaCertFile}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
40
pkgs/games/quantumminigolf/default.nix
Normal file
40
pkgs/games/quantumminigolf/default.nix
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{stdenv, fetchurl, fftwSinglePrec, freetype, SDL, SDL_ttf}:
|
||||||
|
let
|
||||||
|
s = # Generated upstream information
|
||||||
|
rec {
|
||||||
|
baseName="quantumminigolf";
|
||||||
|
version="1.1.1";
|
||||||
|
name="${baseName}-${version}";
|
||||||
|
hash="16av7fk0irhi5nd7y9h9vhb0kf0dk12p6976ai3f60m99qdd8wk3";
|
||||||
|
url="mirror://sourceforge/project/quantumminigolf/quantumminigolf/1.1.1/quantumminigolf-1.1.1.src.tar.gz";
|
||||||
|
sha256="16av7fk0irhi5nd7y9h9vhb0kf0dk12p6976ai3f60m99qdd8wk3";
|
||||||
|
};
|
||||||
|
buildInputs = [
|
||||||
|
fftwSinglePrec freetype SDL SDL_ttf
|
||||||
|
];
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
inherit (s) name version;
|
||||||
|
inherit buildInputs;
|
||||||
|
src = fetchurl {
|
||||||
|
inherit (s) url sha256;
|
||||||
|
};
|
||||||
|
preBuild = ''
|
||||||
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${SDL}/include/SDL"
|
||||||
|
|
||||||
|
sed -re 's@"(gfx|fonts|tracks)/@"'"$out"'/share/quantumminigolf/\1/@g' -i *.cpp
|
||||||
|
'';
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p "$out"/{share/doc,share/quantumminigolf,bin}
|
||||||
|
cp README THANKS LICENSE "$out/share/doc"
|
||||||
|
cp -r fonts gfx tracks "$out/share/quantumminigolf"
|
||||||
|
cp quantumminigolf "$out/bin"
|
||||||
|
'';
|
||||||
|
meta = {
|
||||||
|
inherit (s) version;
|
||||||
|
description = ''Quantum mechanics-based minigolf-like game'';
|
||||||
|
license = stdenv.lib.licenses.gpl2 ;
|
||||||
|
maintainers = [stdenv.lib.maintainers.raskin];
|
||||||
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -9293,6 +9293,8 @@ let
|
|||||||
|
|
||||||
quake3game = callPackage ../games/quake3/game { };
|
quake3game = callPackage ../games/quake3/game { };
|
||||||
|
|
||||||
|
quantumminigolf = callPackage ../games/quantumminigolf {};
|
||||||
|
|
||||||
racer = callPackage ../games/racer { };
|
racer = callPackage ../games/racer { };
|
||||||
|
|
||||||
residualvm = callPackage ../games/residualvm {
|
residualvm = callPackage ../games/residualvm {
|
||||||
|
Loading…
Reference in New Issue
Block a user