Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1.0 KiB
Nix
48 lines
1.0 KiB
Nix
{
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
lib,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
name = "raygui";
|
|
version = "4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "raysan5";
|
|
repo = "raygui";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-1qnChZYsb0e5LnPhvs6a/R5Ammgj2HWFNe9625sBRo8=";
|
|
};
|
|
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/{include,lib/pkgconfig}
|
|
|
|
install -Dm644 $src/src/raygui.h $out/include/raygui.h
|
|
|
|
cat <<EOF > $out/lib/pkgconfig/raygui.pc
|
|
prefix=$out
|
|
includedir=$out/include
|
|
|
|
Name: raygui
|
|
Description: ${finalAttrs.meta.description}
|
|
URL: ${finalAttrs.meta.homepage}
|
|
Version: ${finalAttrs.version}
|
|
Cflags: -I"{includedir}"
|
|
EOF
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Simple and easy-to-use immediate-mode gui library";
|
|
homepage = "https://github.com/raysan5/raygui";
|
|
license = lib.licenses.zlib;
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|