mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
ocamlPackages.raylib: clean & fix
This commit is contained in:
parent
4182d18564
commit
15cad86455
2 changed files with 28 additions and 15 deletions
|
@ -1,35 +1,43 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
fetchurl,
|
||||
buildDunePackage,
|
||||
dune-configurator,
|
||||
ctypes,
|
||||
integers,
|
||||
patch,
|
||||
gitUpdater,
|
||||
libGL,
|
||||
libX11,
|
||||
libXcursor,
|
||||
libXi,
|
||||
libXinerama,
|
||||
libXrandr,
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "raylib";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tjammer";
|
||||
repo = "raylib-ocaml";
|
||||
tag = version;
|
||||
hash = "sha256-Fh79YnmboQF5Kn3VF//JKLaIFKl8QJWVOqRexTzxF0U=";
|
||||
# enable submodules for vendored raylib sources
|
||||
fetchSubmodules = true;
|
||||
src = fetchurl {
|
||||
url = "https://github.com/tjammer/raylib-ocaml/releases/download/${version}/raylib-${version}.tbz";
|
||||
hash = "sha256-/SeKgQOrhsAgMNk6ODAZlopL0mL0lVfCTx1ugmV1P/s=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
buildInputs = [
|
||||
dune-configurator
|
||||
ctypes
|
||||
integers
|
||||
patch
|
||||
];
|
||||
|
||||
passthru.updateScript = gitUpdater { };
|
||||
propagatedBuildInputs = [
|
||||
ctypes
|
||||
integers
|
||||
libGL
|
||||
libX11
|
||||
libXcursor
|
||||
libXi
|
||||
libXinerama
|
||||
libXrandr
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "OCaml bindings for Raylib (5.0.0)";
|
||||
|
|
|
@ -1,12 +1,17 @@
|
|||
{
|
||||
buildDunePackage,
|
||||
fetchurl,
|
||||
raylib,
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
buildDunePackage rec {
|
||||
pname = "raygui";
|
||||
version = "1.4.0";
|
||||
|
||||
inherit (raylib) src version;
|
||||
src = fetchurl {
|
||||
url = "https://github.com/tjammer/raylib-ocaml/releases/download/${version}/raygui-${version}.tbz";
|
||||
hash = "sha256-PQcVTAQKeTPkOOHk5w3O3Tz0n7jLvkIo3Urvrk66eMs=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
raylib
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue