28 lines
510 B
Nix
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 ];
|
||
|
|
};
|
||
|
|
});
|
||
|
|
|
||
|
|
};
|
||
|
|
}
|