clan-app: fix x86_64-darwin build

This commit is contained in:
Jörg Thalheim
2025-07-18 16:06:05 +02:00
parent 0621ae1ca6
commit d97f997349
2 changed files with 22 additions and 17 deletions

View File

@@ -1,6 +1,18 @@
{ pkgs, ... }:
{
gtk4,
webkitgtk_6_0,
lib,
clangStdenv,
fetchFromGitea,
gnumake,
cmake,
clang-tools,
pkg-config,
stdenv,
...
}:
pkgs.clangStdenv.mkDerivation {
clangStdenv.mkDerivation {
pname = "webview";
version = "nightly";
@@ -8,7 +20,7 @@ pkgs.clangStdenv.mkDerivation {
# We disallow remote connections from the UI on Linux
# TODO: Disallow remote connections on MacOS
src = pkgs.fetchFromGitea {
src = fetchFromGitea {
domain = "git.clan.lol";
owner = "clan";
repo = "webview";
@@ -37,23 +49,19 @@ pkgs.clangStdenv.mkDerivation {
];
# Dependencies used during the build process, if any
nativeBuildInputs = with pkgs; [
nativeBuildInputs = [
gnumake
cmake
clang-tools
pkg-config
];
buildInputs =
with pkgs;
[
]
++ pkgs.lib.optionals stdenv.isLinux [
webkitgtk_6_0
gtk4
];
buildInputs = lib.optionals stdenv.isLinux [
webkitgtk_6_0
gtk4
];
meta = with pkgs.lib; {
meta = with lib; {
description = "Tiny cross-platform webview library for C/C++. Uses WebKit (GTK/Cocoa) and Edge WebView2 (Windows)";
homepage = "https://github.com/webview/webview";
license = licenses.mit;