nixpkgs/pkgs/by-name/cl/clanlib/package.nix

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

56 lines
1.0 KiB
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
autoreconfHook,
libGL,
libpng,
pkg-config,
xorg,
freetype,
fontconfig,
alsa-lib,
libXrender,
2024-11-08 12:58:08 +00:00
libXinerama,
2024-11-08 12:51:18 +00:00
nix-update-script,
}:
2024-11-08 12:51:18 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "clanlib";
2024-11-08 12:58:08 +00:00
version = "4.2.0";
src = fetchFromGitHub {
repo = "ClanLib";
owner = "sphair";
2024-11-08 12:51:18 +00:00
rev = "refs/tags/v${finalAttrs.version}";
2024-11-08 12:58:08 +00:00
hash = "sha256-sRHRkT8NiKVfa9YgP6DYV9WzCZoH7f0phHpoYMnCk98=";
};
nativeBuildInputs = [
pkg-config
autoreconfHook
];
buildInputs = [
libGL
libpng
xorg.xorgproto
freetype
fontconfig
alsa-lib
libXrender
2024-11-08 12:58:08 +00:00
libXinerama
];
2024-11-08 12:51:18 +00:00
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/sphair/ClanLib";
description = "Cross platform toolkit library with a primary focus on game creation";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nixinator ];
platforms = with lib.platforms; lib.intersectLists linux (x86 ++ arm ++ aarch64 ++ riscv);
};
2024-11-08 12:51:18 +00:00
})