bilrow/flake.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

2024-03-12 13:22:11 -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.flake-utils.follows = "flake-utils";
};
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
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 = [
{package = pkgs.clangStdenv;}
{package = pkgs.cargo;}
2024-03-15 12:43:32 -05:00
{package = pkgs.cargo-flamegraph;}
2024-03-12 13:22:11 -05:00
{package = pkgs.nil;}
{package = pkgs.rustc;}
{package = pkgs.rustfmt;}
{package = pkgs.rust-analyzer;}
];
};
}));
}