mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
ocamlPackages.raylib: clean & fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user