Add a zig wasm function.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
60da4fb943
commit
0fcd360470
7 changed files with 80 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
|||
description = "A dev shell flake for go";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/de0fe301211c267807afd11b12613f5511ff7433"; # Go 1.24.1
|
||||
nixpkgszig.url = "github:NixOS/nixpkgs/f6db44a8daa59c40ae41ba6e5823ec77fe0d2124"; # Zig 0.14.0
|
||||
systems.url = "github:nix-systems/default";
|
||||
flake-utils = {
|
||||
url = "github:numtide/flake-utils";
|
||||
|
|
@ -10,11 +11,12 @@
|
|||
};
|
||||
|
||||
outputs =
|
||||
{ nixpkgs, flake-utils, ... }:
|
||||
{ nixpkgs, nixpkgszig, flake-utils, ... }:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgszig = nixpkgszig.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
|
|
@ -22,6 +24,8 @@
|
|||
go
|
||||
gotools
|
||||
gopls
|
||||
pkgszig.zig
|
||||
pkgszig.zls
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue