Merge pull request #15478 from seppeljordan/guile-sdl2

Add guile-sdl2 package to nixpkgs

+50
+1
lib/maintainers.nix
··· 328 schmitthenner = "Fabian Schmitthenner <development@schmitthenner.eu>"; 329 schristo = "Scott Christopher <schristopher@konputa.com>"; 330 scolobb = "Sergiu Ivanov <sivanov@colimite.fr>"; 331 sepi = "Raffael Mancini <raffael@mancini.lu>"; 332 sheenobu = "Sheena Artrip <sheena.artrip@gmail.com>"; 333 sheganinans = "Aistis Raulinaitis <sheganinans@gmail.com>";
··· 328 schmitthenner = "Fabian Schmitthenner <development@schmitthenner.eu>"; 329 schristo = "Scott Christopher <schristopher@konputa.com>"; 330 scolobb = "Sergiu Ivanov <sivanov@colimite.fr>"; 331 + seppeljordan = "Sebastian Jordan <sebastian.jordan.mail@googlemail.com>"; 332 sepi = "Raffael Mancini <raffael@mancini.lu>"; 333 sheenobu = "Sheena Artrip <sheena.artrip@gmail.com>"; 334 sheganinans = "Aistis Raulinaitis <sheganinans@gmail.com>";
+47
pkgs/development/guile-modules/guile-sdl2/default.nix
···
··· 1 + { stdenv, 2 + SDL2, 3 + SDL2_image, 4 + SDL2_ttf, 5 + SDL2_mixer, 6 + autoconf, 7 + automake, 8 + fetchgit, 9 + guile, 10 + libtool, 11 + pkgconfig, 12 + buildEnv 13 + }: 14 + stdenv.mkDerivation rec { 15 + name = "guile-sdl2-${version}"; 16 + version = "0.1.0"; 17 + buildInputs = [ autoconf 18 + automake 19 + SDL2 20 + SDL2_image 21 + SDL2_ttf 22 + SDL2_mixer 23 + libtool 24 + guile 25 + pkgconfig ]; 26 + src = fetchgit { 27 + url = "git://dthompson.us/guile-sdl2.git"; 28 + rev = "048f80ddb5c6b03b87bba199a99a6f22d911bfff"; 29 + sha256 = "1wbx157xd8lsv4vs8igqy3qw8yym5r5s7z94an18kwbf89npmf5d"; 30 + }; 31 + preConfigurePhases = [ "bootstrapPhase" ]; 32 + bootstrapPhase = '' 33 + ./bootstrap 34 + ''; 35 + configureFlags = [ "--with-libsdl2-prefix=${SDL2}" 36 + "--with-libsdl2-image-prefix=${SDL2_image}" 37 + "--with-libsdl2-ttf-prefix=${SDL2_ttf}" 38 + "--with-libsdl2-mixer-prefix=${SDL2_mixer}"]; 39 + makeFlags = ["GUILE_AUTO_COMPILE=0"]; 40 + meta = { 41 + description = "Bindings to SDL2 for GNU Guile"; 42 + homepage = "https://git.dthompson.us/guile-sdl2.git"; 43 + license = stdenv.lib.licenses.gpl3; 44 + maintainers = [ stdenv.lib.maintainers.seppeljordan ]; 45 + platforms = stdenv.lib.platforms.all; 46 + }; 47 + }
+2
pkgs/top-level/all-packages.nix
··· 5772 5773 guile-sdl = callPackage ../development/guile-modules/guile-sdl { }; 5774 5775 guile-xcb = callPackage ../development/guile-modules/guile-xcb { }; 5776 5777 pharo-vms = callPackage_i686 ../development/pharo/vm { };
··· 5772 5773 guile-sdl = callPackage ../development/guile-modules/guile-sdl { }; 5774 5775 + guile-sdl2 = callPackage ../development/guile-modules/guile-sdl2 { }; 5776 + 5777 guile-xcb = callPackage ../development/guile-modules/guile-xcb { }; 5778 5779 pharo-vms = callPackage_i686 ../development/pharo/vm { };