depot/third_party/nixpkgs/pkgs/by-name/gu/guile-sdl/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

60 lines
1 KiB
Nix

{
lib,
SDL,
SDL_image,
SDL_mixer,
SDL_ttf,
buildEnv,
fetchurl,
guile,
lzip,
pkg-config,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "guile-sdl";
version = "0.6.1";
src = fetchurl {
url = "mirror://gnu/guile-sdl/guile-sdl-${finalAttrs.version}.tar.lz";
hash = "sha256-/9sTTvntkRXck3FoRalROjqUQC8hkePtLTnHNZotKOE=";
};
nativeBuildInputs = [
SDL
guile
lzip
pkg-config
];
buildInputs = [
(lib.getDev SDL)
(lib.getDev SDL_image)
(lib.getDev SDL_mixer)
(lib.getDev SDL_ttf)
guile
];
makeFlags =
let
sdl-env = buildEnv {
name = "sdl-env";
paths = finalAttrs.buildInputs;
};
in
[
"SDLMINUSI=-I${sdl-env}/include/SDL"
];
strictDeps = true;
meta = {
homepage = "https://www.gnu.org/software/guile-sdl/";
description = "Guile bindings for SDL";
license = lib.licenses.gpl3Plus;
maintainers = lib.teams.sdl.members
++ (with lib.maintainers; [ ]);
inherit (guile.meta) platforms;
};
})