Update/fix flake.nix

Johannes Maier 2022-07-22 10:16:10 +02:00
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;
}
);
}