about summary refs log tree commit diff
path: root/pkgs/by-name/fy/fyne
diff options
context:
space:
mode:
authorGreg Hellings2024-04-09 22:53:41 -0500
committerGreg Hellings2024-08-03 09:35:57 -0500
commit87798077cfdc6a8d139fd14d3f4031c49cfe4644 (patch)
tree23671dacda7412bb7c5a8c1f9131e55cb9860574 /pkgs/by-name/fy/fyne
parentaf46c32a8b1e4ef3f92e22d82bc1be984e900440 (diff)
fyne: init at 2.5.0
Diffstat (limited to 'pkgs/by-name/fy/fyne')
-rw-r--r--pkgs/by-name/fy/fyne/package.nix62
1 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/by-name/fy/fyne/package.nix b/pkgs/by-name/fy/fyne/package.nix
new file mode 100644
index 000000000000..76ea63dead12
--- /dev/null
+++ b/pkgs/by-name/fy/fyne/package.nix
@@ -0,0 +1,62 @@
+{
+  lib,
+  buildGoModule,
+  fetchFromGitHub,
+
+  libGL,
+  libX11,
+  libXcursor,
+  libXinerama,
+  libXi,
+  libXrandr,
+  libXxf86vm,
+  pkg-config,
+  stdenv,
+  darwin,
+}:
+
+buildGoModule rec {
+  pname = "fyne";
+  version = "2.5.0";
+
+  src = fetchFromGitHub {
+    owner = "fyne-io";
+    repo = "fyne";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-DUXCaPFMb6f7ROI8DC2RVCX12xf5F9MEtBJyi8CuoE4=";
+  };
+
+  vendorHash = "sha256-Mz+p2kpPtqFb/wDkwOdIUQ2fCvzWqTH49YRjWmSlF4M=";
+
+  nativeBuildInputs = [ pkg-config ];
+
+  buildInputs =
+    [
+      libGL
+      libX11
+      libXcursor
+      libXinerama
+      libXi
+      libXrandr
+      libXxf86vm
+    ]
+    ++ (lib.optionals stdenv.isDarwin (
+      with darwin.apple_sdk_11_0.frameworks;
+      [
+        Carbon
+        Cocoa
+        Kernel
+        UserNotifications
+      ]
+    ));
+
+  doCheck = false;
+
+  meta = with lib; {
+    homepage = "https://fyne.io";
+    description = "Cross platform GUI toolkit in Go";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ greg ];
+    mainProgram = "fyne";
+  };
+}