2021-04-13 19:18:49 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, libGL
|
|
|
|
, libpng
|
|
|
|
, pkg-config
|
|
|
|
, xorg
|
|
|
|
, file
|
|
|
|
, freetype
|
|
|
|
, fontconfig
|
|
|
|
, xlibsWrapper
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib
|
2021-04-13 19:18:49 +00:00
|
|
|
, libXrender
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "clanlib";
|
|
|
|
version = "4.1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "ClanLib";
|
|
|
|
owner = "sphair";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-SVsLWcTP+PCIGDWLkadMpJPj4coLK9dJrW4sc2+HotE=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
libGL
|
|
|
|
libpng
|
|
|
|
xorg.xorgproto
|
|
|
|
freetype
|
|
|
|
fontconfig
|
|
|
|
xlibsWrapper
|
2021-06-10 02:57:09 +00:00
|
|
|
alsa-lib
|
2021-04-13 19:18:49 +00:00
|
|
|
libXrender
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/sphair/ClanLib";
|
|
|
|
description = "A cross platform toolkit library with a primary focus on game creation";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nixinator ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|