10 # Linux specific dependencies
19 src = fetchFromGitHub {
23 hash = "sha256-yIoCKnYKky+BlMjGBNRk0lKyxr3UWMdRsvyW2KUItBk=";
26 vendorHash = "sha256-6QFnLuRnSzIqkQkK1qg7VBYxwjK8fSQWz5RxpuyutoY=";
30 subPackages = [ "cmd/wails" ];
32 # These packages are needed to build wails
33 # and will also need to be used when building a wails app.
39 # Wails apps are built with Go, so we need to be able to
40 # add it in propagatedBuildInputs.
41 allowGoReference = true;
43 # Following packages are required when wails used as a builder.
44 propagatedBuildInputs = [
49 ] ++ lib.optionals stdenv.isLinux [
59 # As Wails calls a compiler, certain apps and libraries need to be made available.
61 wrapProgram $out/bin/wails \
62 --prefix PATH : ${lib.makeBinPath [ pkg-config go stdenv.cc nodejs ]} \
63 --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath (lib.optionals stdenv.isLinux [ gtk3 webkitgtk ])}" \
64 --set PKG_CONFIG_PATH "$PKG_CONFIG_PATH" \
65 --set CGO_LDFLAGS "-L${lib.makeLibraryPath [ zlib ]}"
69 description = "Build applications using Go + HTML + CSS + JS";
70 homepage = "https://wails.io";
71 license = lib.licenses.mit;
72 maintainers = with lib.maintainers; [ ianmjones ];
73 mainProgram = "wails";
74 platforms = lib.platforms.unix;