cordial/flake.nix

48 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2023-03-17 06:50:27 +00:00
{
2023-03-17 08:41:24 +00:00
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
fenix.url = "github:nix-community/fenix";
};
2023-03-17 06:50:27 +00:00
outputs = { self, nixpkgs, flake-utils, fenix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ fenix.overlays.default ];
};
toolchain = pkgs.fenix.stable;
2023-03-17 08:41:24 +00:00
flakePkgs = rec { cordial = pkgs.callPackage ./. { }; };
2023-03-17 06:50:27 +00:00
in rec {
devShell = pkgs.mkShell {
2023-03-17 08:41:24 +00:00
inputsFrom = with flakePkgs; [ cordial ];
2023-03-17 06:50:27 +00:00
packages = (with pkgs; [
2023-03-17 08:41:24 +00:00
cmake
ninja
elixir
inotify-tools
2023-03-17 06:50:27 +00:00
cargo-deny
cargo-edit
cargo-expand
cargo-flamegraph
cargo-watch
]) ++ (with toolchain; [
cargo
rustc
clippy
# Get the nightly version of rustfmt so we can wrap comments
pkgs.fenix.default.rustfmt
]);
CARGO_UNSTABLE_SPARSE_REGISTRY = "true";
};
});
}