nixpkgs/pkgs/development/guile-modules/guile-sdl/default.nix

35 lines
833 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, guile, buildEnv
2014-10-31 15:50:54 +00:00
, SDL, SDL_image, SDL_ttf, SDL_mixer
}:
stdenv.mkDerivation rec {
2017-09-28 04:53:08 +01:00
pname = "guile-sdl";
version = "0.5.2";
2014-10-31 15:50:54 +00:00
src = fetchurl {
url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz";
2017-09-28 04:53:08 +01:00
sha256 = "0cjgs012a9922hn6xqwj66w6qmfs3nycnm56hyykx5n3g5p7ag01";
2014-10-31 15:50:54 +00:00
};
nativeBuildInputs = [ pkg-config guile ];
2014-10-31 15:50:54 +00:00
buildInputs = [ SDL.dev SDL_image SDL_ttf SDL_mixer ];
2014-10-31 15:50:54 +00:00
GUILE_AUTO_COMPILE = 0;
makeFlags = let
sdl = buildEnv {
name = "sdl-env";
paths = buildInputs;
};
2019-10-28 09:17:49 +00:00
in [ "SDLMINUSI=-I${sdl}/include/SDL" ];
meta = with lib; {
description = "Guile bindings for SDL";
homepage = "https://www.gnu.org/software/guile-sdl/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ vyp ];
platforms = platforms.linux;
};
2014-10-31 15:50:54 +00:00
}