diff options
Diffstat (limited to 'nixpkgs/pkgs/development/guile-modules/guile-sdl2/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/guile-modules/guile-sdl2/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/guile-modules/guile-sdl2/default.nix b/nixpkgs/pkgs/development/guile-modules/guile-sdl2/default.nix new file mode 100644 index 000000000000..c6fbba93de47 --- /dev/null +++ b/nixpkgs/pkgs/development/guile-modules/guile-sdl2/default.nix @@ -0,0 +1,52 @@ +{ lib +, stdenv +, fetchurl +, SDL2 +, SDL2_image +, SDL2_mixer +, SDL2_ttf +, guile +, libtool +, pkg-config +}: + +stdenv.mkDerivation rec { + pname = "guile-sdl2"; + version = "0.5.0"; + + src = fetchurl { + url = "https://files.dthompson.us/${pname}/${pname}-${version}.tar.gz"; + hash = "sha256-lWTLctPUDqvN/Y95oOL7LF3czlLJFQ9d9np9dx4DHYU="; + }; + + nativeBuildInputs = [ + pkg-config + libtool + ]; + buildInputs = [ + SDL2 + SDL2_image + SDL2_mixer + SDL2_ttf + guile + ]; + + configureFlags = [ + "--with-libsdl2-image-prefix=${SDL2_image}" + "--with-libsdl2-mixer-prefix=${SDL2_mixer}" + "--with-libsdl2-prefix=${SDL2}" + "--with-libsdl2-ttf-prefix=${SDL2_ttf}" + ]; + + makeFlags = [ + "GUILE_AUTO_COMPILE=0" + ]; + + meta = with lib; { + homepage = "https://dthompson.us/projects/guile-sdl2.html"; + description = "Bindings to SDL2 for GNU Guile"; + license = licenses.lgpl3Plus; + maintainers = with maintainers; [ seppeljordan vyp ]; + platforms = platforms.all; + }; +} |