mirror of
https://github.com/ziglang/zig.git
synced 2024-11-21 19:42:56 +00:00
Update/fix flake.nix
parent
b3b64c322d
commit
483b8dfc5b
@ -41,28 +41,30 @@ Alternatively, you can use this sample `flake.nix`:
|
||||
};
|
||||
};
|
||||
|
||||
outputs = inputs: inputs.flake-utils.lib.eachDefaultSystem (system:
|
||||
outputs = inputs@{ self, ... }: inputs.flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
devShell.${system} = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
cmake
|
||||
gdb
|
||||
ninja
|
||||
qemu
|
||||
wasmtime
|
||||
zlib
|
||||
] ++ (with llvmPackages_14; [
|
||||
clang
|
||||
clang-unwrapped
|
||||
lld
|
||||
llvm
|
||||
]);
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
cmake
|
||||
gdb
|
||||
ninja
|
||||
qemu
|
||||
wasmtime
|
||||
zlib
|
||||
] ++ (with llvmPackages_14; [
|
||||
clang
|
||||
clang-unwrapped
|
||||
lld
|
||||
llvm
|
||||
]);
|
||||
|
||||
hardeningDisable = [ "all" ];
|
||||
};
|
||||
hardeningDisable = [ "all" ];
|
||||
};
|
||||
# For compatibility with older versions of the `nix` binary
|
||||
devShell = self.devShells.${system}.default;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user