depot/third_party/nixpkgs/pkgs/by-name/fy/fyne/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

62 lines
1.1 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
libGL,
libX11,
libXcursor,
libXinerama,
libXi,
libXrandr,
libXxf86vm,
pkg-config,
stdenv,
darwin,
}:
buildGoModule rec {
pname = "fyne";
version = "2.5.1";
src = fetchFromGitHub {
owner = "fyne-io";
repo = "fyne";
rev = "refs/tags/v${version}";
hash = "sha256-21/52Uub5+l0TcuWZ9QSyckgR1kKNfDvro1CF5QuZWA=";
};
vendorHash = "sha256-+g11BRf9xRXjtF8InzdTHGOGOf8lJgLKEdBR5DcpEmo=";
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";
};
}