30 lines
609 B
Nix
30 lines
609 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 ];
|
|
buildInputs = [ hyperfine ];
|
|
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
|
|
};
|
|
});
|
|
|
|
};
|
|
}
|