lib.packagesFromDirectoryRecursive: Improved documentation (#359898)
[NixPkgs.git] / pkgs / by-name / gu / guile-sdl2 / package.nix
blob0ae8424b597dcf3ba7544401e4b0fae01c8fe7e4
1 { lib
2 , stdenv
3 , fetchurl
4 , SDL2
5 , SDL2_image
6 , SDL2_mixer
7 , SDL2_ttf
8 , guile
9 , libtool
10 , pkg-config
13 stdenv.mkDerivation rec {
14   pname = "guile-sdl2";
15   version = "0.8.0";
17   src = fetchurl {
18     url = "https://files.dthompson.us/${pname}/${pname}-${version}.tar.gz";
19     hash = "sha256-V/XrpFrqOxS5mAphtIt2e3ewflK+HdLFEqOmix98p+w=";
20   };
22   nativeBuildInputs = [
23     pkg-config
24     libtool
25   ];
26   buildInputs = [
27     SDL2
28     SDL2_image
29     SDL2_mixer
30     SDL2_ttf
31     guile
32   ];
34   configureFlags = [
35     "--with-libsdl2-image-prefix=${SDL2_image}"
36     "--with-libsdl2-mixer-prefix=${SDL2_mixer}"
37     "--with-libsdl2-prefix=${SDL2}"
38     "--with-libsdl2-ttf-prefix=${SDL2_ttf}"
39   ];
41   makeFlags = [
42     "GUILE_AUTO_COMPILE=0"
43   ];
45   meta = with lib; {
46     homepage = "https://dthompson.us/projects/guile-sdl2.html";
47     description = "Bindings to SDL2 for GNU Guile";
48     license = licenses.lgpl3Plus;
49     maintainers = with maintainers; [ seppeljordan vyp ];
50     platforms = platforms.all;
51   };