Files
aoc-2023/flake.nix

30 lines
609 B
Nix
Raw Normal View History

2023-12-03 21:20:45 +01:00
{
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 ];
2023-12-21 17:37:32 +01:00
buildInputs = [ hyperfine ];
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
2023-12-03 21:20:45 +01:00
};
});
};
}