Created
November 29, 2022 01:54
-
-
Save stelford/642ca2ca00b764715870174887039002 to your computer and use it in GitHub Desktop.
Wails / Go v1.18 and Node v16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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