13 stdenv.mkDerivation rec {
15 version = "4.1-unstable-2024-05-19";
17 src = fetchFromGitHub {
20 rev = "49b04c4cf8ae4d3e38e389f446ef75170eb62762";
21 hash = "sha256-W9LnUBUKwx1x3+BEeUanisBGR2Q4dnbcMM5k8mCondM=";
24 postPatch = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) ''
25 substituteInPlace meson.build --replace "'-arch', 'arm64'" ""
36 if stdenv.hostPlatform.isDarwin then [
38 darwin.apple_sdk_11_0.Libsystem
39 darwin.apple_sdk_11_0.frameworks.Cocoa
40 darwin.apple_sdk_11_0.frameworks.AppKit
41 darwin.apple_sdk_11_0.frameworks.CoreFoundation
47 (lib.mesonBool "examples" (!stdenv.hostPlatform.isDarwin))
50 passthru.updateScript = unstableGitUpdater {
55 description = "Portable GUI library for C";
56 homepage = "https://github.com/libui-ng/libui-ng";
57 license = licenses.mit;
59 platforms = platforms.all;