Files
aoc-2023/flake.nix
2023-12-03 21:20:45 +01:00

28 lines
510 B
Nix

{
description = "Advent Of Code 2023";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
forAllSystems = function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: with pkgs; {
default = mkShell {
nativeBuildInputs = [ rustc cargo ];
};
});
};
}