nixpkgs/pkgs/development/guile-modules/guile-sdl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.0 KiB
Nix
Raw Normal View History

2021-04-15 14:59:41 +00:00
{ lib
, stdenv
, fetchurl
2023-08-04 22:29:06 +00:00
, guile
, lzip
, pkg-config
2021-04-15 14:59:41 +00:00
, SDL
, SDL_image
, SDL_mixer
, SDL_ttf
, buildEnv
2014-10-31 15:50:54 +00:00
}:
stdenv.mkDerivation rec {
2017-09-28 03:53:08 +00:00
pname = "guile-sdl";
2023-08-04 22:29:06 +00:00
version = "0.6.1";
2014-10-31 15:50:54 +00:00
src = fetchurl {
2023-08-04 22:29:06 +00:00
url = "mirror://gnu/${pname}/${pname}-${version}.tar.lz";
hash = "sha256-/9sTTvntkRXck3FoRalROjqUQC8hkePtLTnHNZotKOE=";
2014-10-31 15:50:54 +00:00
};
2023-08-04 22:29:06 +00:00
strictDeps = true;
2021-04-15 14:59:41 +00:00
nativeBuildInputs = [
guile
2023-08-04 22:29:06 +00:00
lzip
2021-04-15 14:59:41 +00:00
pkg-config
2023-08-04 22:29:06 +00:00
SDL
2021-04-15 14:59:41 +00:00
];
2023-08-04 22:29:06 +00:00
2021-04-15 14:59:41 +00:00
buildInputs = [
2023-08-04 22:29:06 +00:00
guile
2022-05-10 05:09:26 +00:00
(lib.getDev SDL)
2021-04-15 14:59:41 +00:00
SDL_image
SDL_mixer
SDL_ttf
];
2014-10-31 15:50:54 +00:00
2023-08-04 22:29:06 +00:00
makeFlags =
let
sdl-env = buildEnv {
name = "sdl-env";
paths = buildInputs;
};
in
[
"SDLMINUSI=-I${sdl-env}/include/SDL"
];
meta = with lib; {
homepage = "https://www.gnu.org/software/guile-sdl/";
2021-04-15 14:59:41 +00:00
description = "Guile bindings for SDL";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ vyp ];
2023-08-04 22:29:06 +00:00
platforms = guile.meta.platforms;
# configure: error: *** SDL version not found!
broken = stdenv.isDarwin;
};
2014-10-31 15:50:54 +00:00
}