nixpkgs/pkgs/by-name/fy/fyne/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.1 KiB
Nix
Raw Normal View History

2024-04-10 03:53:41 +00:00
{
lib,
buildGoModule,
fetchFromGitHub,
libGL,
libX11,
libXcursor,
libXinerama,
libXi,
libXrandr,
libXxf86vm,
pkg-config,
stdenv,
darwin,
}:
buildGoModule rec {
pname = "fyne";
2024-10-15 15:04:56 +00:00
version = "2.5.2";
2024-04-10 03:53:41 +00:00
src = fetchFromGitHub {
owner = "fyne-io";
repo = "fyne";
rev = "refs/tags/v${version}";
2024-10-15 15:04:56 +00:00
hash = "sha256-XaD7t1hSv5plDa6QHDTyoWgzvSFMRezvHl47YphXoig=";
2024-04-10 03:53:41 +00:00
};
2024-10-15 15:04:56 +00:00
vendorHash = "sha256-uV+pbGxAV/uuHV0xl2vPZpgGYRj9/E0rhFtLfCV5rnE=";
2024-04-10 03:53:41 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs =
[
libGL
libX11
libXcursor
libXinerama
libXi
libXrandr
libXxf86vm
]
++ (lib.optionals stdenv.hostPlatform.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";
};
}