depot/pkgs/by-name/gu/guile-sdl2/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

52 lines
1,005 B
Nix

{ lib
, stdenv
, fetchurl
, SDL2
, SDL2_image
, SDL2_mixer
, SDL2_ttf
, guile
, libtool
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "guile-sdl2";
version = "0.8.0";
src = fetchurl {
url = "https://files.dthompson.us/${pname}/${pname}-${version}.tar.gz";
hash = "sha256-V/XrpFrqOxS5mAphtIt2e3ewflK+HdLFEqOmix98p+w=";
};
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;
};
}