Skip to content

Instantly share code, notes, and snippets.

@stelford
Created November 29, 2022 01:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stelford/642ca2ca00b764715870174887039002 to your computer and use it in GitHub Desktop.
Save stelford/642ca2ca00b764715870174887039002 to your computer and use it in GitHub Desktop.
Wails / Go v1.18 and Node v16
{
description = "Wails/Go v1.18.x/Node v16.x";
inputs = {
nixpkgs = {
#url = "github:NixOS/nixpkgs/22.05";
url = "github:NixOS/nixpkgs/master";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs {
inherit system;
config = { allowUnfree = true; };
};
in rec {
devShell = pkgs.mkShell {
shellHook = ''
export GOPATH="/home/stef/go";
export PATH=$PATH:$GOPATH/bin;
export GO111MODULE=on;
export WEBKIT_DISABLE_COMPOSITING_MODE=1;
}];
'';
hardeningDisable = [ "fortify" ];
buildInputs = with pkgs; [
yarn
nodejs-16_x
go_1_18
wails
];
};
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment