mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
27 lines
826 B
Nix
27 lines
826 B
Nix
{ lib, stdenv, fetchurl, pkg-config, gtk2, SDL, nasm, zlib, libpng, libGLU, libGL }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gens-gs";
|
|
version = "7";
|
|
|
|
src = fetchurl {
|
|
url = "http://retrocdn.net/images/6/6d/Gens-gs-r${version}.tar.gz";
|
|
sha256 = "1ha5s6d3y7s9aq9f4zmn9p88109c3mrj36z2w68jhiw5xrxws833";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ gtk2 SDL nasm zlib libpng libGLU libGL ];
|
|
|
|
# Work around build failures on recent GTK.
|
|
# See http://ubuntuforums.org/showthread.php?p=10535837
|
|
env.NIX_CFLAGS_COMPILE = "-UGTK_DISABLE_DEPRECATED -UGSEAL_ENABLE";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://segaretro.org/Gens/GS";
|
|
description = "A Genesis/Mega Drive emulator";
|
|
platforms = [ "i686-linux" ];
|
|
license = licenses.gpl2Plus;
|
|
maintainers = [ maintainers.eelco ];
|
|
};
|
|
}
|