Merge pull request #185712 from ianmjones/wails-2.0.0-beta.43

wails: 2.0.0-beta.42 -> 2.0.0-beta.43
This commit is contained in:
Guillaume Girol 2022-08-15 11:53:41 +00:00 committed by GitHub
commit 550ee31cdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,22 +9,21 @@
, gtk3
, webkitgtk
, nodejs
, upx
, zlib
}:
buildGoModule rec {
pname = "wails";
version = "2.0.0-beta.42";
version = "2.0.0-beta.43";
src = fetchFromGitHub {
owner = "wailsapp";
repo = pname;
rev = "v${version}";
sha256 = "sha256-ZfzaDUUM3W2ZvmLJufeVZ3eK/grvSxbKbsReV7BmcGA=";
sha256 = "sha256-IX60xXU1sV39EI2nC/oL+s/RfE0apSJ2nMza6Av864I=";
} + "/v2";
vendorSha256 = "sha256-qmj7pZV9VaxWcC7EgbKZOjlDj6/66Qf5d222aj4TViw=";
vendorSha256 = "sha256-KB6fzyeeHCl164ZnDIy9auUC7Qzm8rVMo3XxXbeYCgY=";
proxyVendor = true;
@ -49,7 +48,6 @@ buildGoModule rec {
gtk3
webkitgtk
nodejs
upx
];
ldflags = [
@ -60,7 +58,7 @@ buildGoModule rec {
# As Wails calls a compiler, certain apps and libraries need to be made available.
postFixup = ''
wrapProgram $out/bin/wails \
--prefix PATH : ${lib.makeBinPath [ pkg-config go gcc nodejs upx ]} \
--prefix PATH : ${lib.makeBinPath [ pkg-config go gcc nodejs ]} \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ gtk3 webkitgtk ]} \
--set PKG_CONFIG_PATH "$PKG_CONFIG_PATH" \
--set CGO_LDFLAGS "-L${lib.makeLibraryPath [ zlib ]}"