forked from mirrors/nixpkgs
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
35 lines
833 B
Nix
35 lines
833 B
Nix
{ lib, stdenv, fetchurl, pkg-config, guile, buildEnv
|
|
, SDL, SDL_image, SDL_ttf, SDL_mixer
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "guile-sdl";
|
|
version = "0.5.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz";
|
|
sha256 = "0cjgs012a9922hn6xqwj66w6qmfs3nycnm56hyykx5n3g5p7ag01";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config guile ];
|
|
|
|
buildInputs = [ SDL.dev SDL_image SDL_ttf SDL_mixer ];
|
|
|
|
GUILE_AUTO_COMPILE = 0;
|
|
|
|
makeFlags = let
|
|
sdl = buildEnv {
|
|
name = "sdl-env";
|
|
paths = buildInputs;
|
|
};
|
|
in [ "SDLMINUSI=-I${sdl}/include/SDL" ];
|
|
|
|
meta = with lib; {
|
|
description = "Guile bindings for SDL";
|
|
homepage = "https://www.gnu.org/software/guile-sdl/";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ vyp ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|