mirror of
https://github.com/ziglang/zig.git
synced 2024-11-22 04:10:13 +00:00
Update/fix flake.nix
parent
b3b64c322d
commit
483b8dfc5b
@ -41,12 +41,12 @@ 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 {
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
cmake
|
||||
gdb
|
||||
@ -63,6 +63,8 @@ Alternatively, you can use this sample `flake.nix`:
|
||||
|
||||
hardeningDisable = [ "all" ];
|
||||
};
|
||||
# For compatibility with older versions of the `nix` binary
|
||||
devShell = self.devShells.${system}.default;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user