Skip to content

Instantly share code, notes, and snippets.

@bbjubjub2494
Created September 3, 2021 21:07
Show Gist options
  • Save bbjubjub2494/6137632650bf6368424834b82f8a842a to your computer and use it in GitHub Desktop.
Save bbjubjub2494/6137632650bf6368424834b82f8a842a to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
buildGoModule rec {
pname = "wails";
version = "1.16.7";
vendorSha256 = "JO01u2pQsp90buJpATOr28qoQkLbmdoC6+HTKS/LuYE=";
src = fetchFromGitHub {
owner = "wailsapp";
repo = pname;
rev = "v${version}";
sha256 = "rKcHkX45HiRUGuN1Q7GkVpEkD5e0KfD+Z1r28Daf3Yc=";
};
subPackages = [ "cmd/wails" ];
buildInputs = [ makeWrapper ];
ldflags="-L ${gtk3}/lib";
postInstall = ''
mkdir -p $out/bin/github.com/wailsapp/wails/cmd/
cp $src/cmd/linuxdb.yaml $out/bin/github.com/wailsapp/wails/cmd/
'';
meta = with lib; {
description = "Create desktop apps using Go and Web Technologies";
longDescription = "Create desktop apps using Go and Web Technologies";
homepage = "https://github.com/wailsapp/wails";
license = licenses.mit;
maintainers = with maintainers; [ diogox ];
platforms = platforms.unix;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment