bilrow/flake.nix

47 lines
1.2 KiB
Nix
Raw Permalink 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";
};
2024-03-18 11:39:13 -05:00
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-09-27 13:40:34 -05:00
flake-utils.url = "github:numtide/flake-utils";
2024-03-12 13:22:11 -05:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = {
devshell,
2024-03-18 11:39:13 -05:00
fenix,
2024-03-12 13:22:11 -05:00
flake-utils,
nixpkgs,
...
}: (flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
2024-03-18 11:39:13 -05:00
overlays = [
devshell.overlays.default
fenix.overlays.default
];
2024-03-12 13:22:11 -05:00
};
in {
formatter = pkgs.alejandra;
devShells.default = pkgs.devshell.mkShell {
commands = [
{package = pkgs.clangStdenv;}
2024-03-18 11:39:13 -05:00
{package = pkgs.fenix.default.toolchain; }
2024-03-15 12:43:32 -05:00
{package = pkgs.cargo-flamegraph;}
2024-06-14 11:00:41 -05:00
{package = pkgs.samply;}
2024-09-27 13:40:34 -05:00
{package = pkgs.hyperfine;}
2024-03-12 13:22:11 -05:00
{package = pkgs.nil;}
2024-03-18 11:39:13 -05:00
{package = pkgs.rust-analyzer-nightly;}
2024-03-12 13:22:11 -05:00
];
};
}));
}