about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/clanlib/default.nix
blob: 7dfc2e0844687bcc92000b9520b059ef2fb1f32d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, libGL
, libpng
, pkg-config
, xorg
, file
, freetype
, fontconfig
, alsa-lib
, 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
    alsa-lib
    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" ];
  };
}