p2pchat/flake.nix

37 lines
820 B
Nix

{
description = "p2p-chat to troll tessa";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { system = system; };
in
{
devShells.default = pkgs.mkShell {
ERL_AFLAGS = "-kernel shell_history enabled";
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
buildInputs = with pkgs; [
llvmPackages.clang
];
packages = with pkgs; [
elixir
elixir-ls
cargo
rustfmt
rust-analyzer
rustc
];
};
}
);
}