switch build to fyne tool

This commit is contained in:
Aaron Bieber 2024-08-19 19:37:41 -06:00
parent f6a61b3918
commit 77bf16aa58
No known key found for this signature in database

View File

@ -25,6 +25,7 @@
nativeBuildInputs = [ pkg-config copyDesktopItems ]; nativeBuildInputs = [ pkg-config copyDesktopItems ];
buildInputs = [ buildInputs = [
fyne
git git
glfw glfw
libGL libGL
@ -42,18 +43,13 @@
libxkbcommon libxkbcommon
]; ];
desktopItems = [ buildPhase = ''
(makeDesktopItem { ${fyne}/bin/fyne build
name = "Xin Tray"; '';
exec = pname;
icon = pname;
desktopName = pname;
})
];
postInstall = '' installPhase = ''
mkdir -p $out/share/ mkdir -p $out/bin
cp -r icons $out/share/ cp xintray $out/bin/
''; '';
}; };
}); });
@ -69,6 +65,7 @@
echo "Go `${pkgs.go}/bin/go version`" echo "Go `${pkgs.go}/bin/go version`"
''; '';
buildInputs = with pkgs; [ buildInputs = with pkgs; [
fyne
git git
go go
gopls gopls