mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
f7e390e6d4
Related: -9fc5e7e473
-593e11fd94
-508ae42a0f
Since the last time I ran this script, the Repology API changed, so I had to adapt the script used in the previous PR. The new API should be more robust, so overall this is a positive (no more grepping the error messages for our relevant data but just a nice json structure). Here's the new script I used: ```sh curl https://repology.org/api/v1/repository/nix_unstable/problems \ | jq -r '.[] | select(.type == "homepage_permanent_https_redirect") | .data | "s@\(.url)@\(.target)@"' \ | sort | uniq | tee script.sed find -name '*.nix' | xargs -P4 -- sed -f script.sed -i ``` I will also add this script to `maintainers/scripts`.
44 lines
1.4 KiB
Nix
44 lines
1.4 KiB
Nix
{ stdenv, fetchFromGitHub, cmake
|
|
, freetype, SDL2, SDL2_mixer, openal, zlib, libpng, python, libvorbis
|
|
, libiconv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gemrb";
|
|
version = "0.8.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gemrb";
|
|
repo = "gemrb";
|
|
rev = "v${version}";
|
|
sha256 = "14j9mhrbi4gnrbv25nlsvcxzkylijzrnwbqqnrg7pr452lb3srpb";
|
|
};
|
|
|
|
# TODO: make libpng, libvorbis, sdl_mixer, freetype, vlc, glew (and other gl
|
|
# reqs) optional
|
|
buildInputs = [ freetype python openal SDL2 SDL2_mixer zlib libpng libvorbis libiconv ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
# TODO: add proper OpenGL support. We are currently (0.8.7) getting a shader
|
|
# error on execution when enabled.
|
|
cmakeFlags = [
|
|
"-DLAYOUT=opt"
|
|
# "-DOPENGL_BACKEND=GLES"
|
|
# "-DOpenGL_GL_PREFERENCE=GLVND"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A reimplementation of the Infinity Engine, used by games such as Baldur's Gate";
|
|
longDescription = ''
|
|
GemRB (Game engine made with pre-Rendered Background) is a portable
|
|
open-source implementation of Bioware's Infinity Engine. It was written to
|
|
support pseudo-3D role playing games based on the Dungeons & Dragons
|
|
ruleset (Baldur's Gate and Icewind Dale series, Planescape: Torment).
|
|
'';
|
|
homepage = "https://gemrb.org/";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|