2023-10-11 10:12:50 -05:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
devshell = {
|
|
|
|
url = "github:numtide/devshell";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.systems.follows = "systems";
|
|
|
|
};
|
|
|
|
flake-utils = {
|
|
|
|
url = "github:numtide/flake-utils";
|
|
|
|
inputs.systems.follows = "systems";
|
|
|
|
};
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
|
|
|
systems.url = "github:nix-systems/default";
|
|
|
|
};
|
|
|
|
outputs = {
|
|
|
|
devshell,
|
|
|
|
flake-utils,
|
|
|
|
nixpkgs,
|
|
|
|
...
|
|
|
|
}: (flake-utils.lib.eachDefaultSystem (system: let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [devshell.overlays.default];
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
formatter = pkgs.alejandra;
|
|
|
|
devShells.default = pkgs.devshell.mkShell {
|
|
|
|
commands = [
|
2023-10-11 10:33:28 -05:00
|
|
|
{package = pkgs.clang;}
|
|
|
|
{package = pkgs.cargo;}
|
2023-10-11 10:12:50 -05:00
|
|
|
{package = pkgs.exercism;}
|
|
|
|
{package = pkgs.nil;}
|
2023-10-11 10:33:28 -05:00
|
|
|
{package = pkgs.rustc;}
|
2023-10-11 10:56:50 -05:00
|
|
|
{package = pkgs.rustfmt;}
|
2023-10-11 10:33:28 -05:00
|
|
|
{package = pkgs.rust-analyzer;}
|
2023-10-11 10:12:50 -05:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}));
|
|
|
|
}
|