blob: c4ec4904f9aacba0a98299df105916e8f7eba22e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{ lib
, stdenv
, fetchurl
, SDL2
, SDL2_image
, SDL2_mixer
, SDL2_ttf
, guile
, libtool
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "guile-sdl2";
version = "0.7.0";
src = fetchurl {
url = "https://files.dthompson.us/${pname}/${pname}-${version}.tar.gz";
hash = "sha256-h0osCURnYTUQFrKw0i7Jd+QCI8piR1NUE2lbxPv87aQ=";
};
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;
};
}
|