sonic-channel/flake.nix

28 lines
771 B
Nix
Raw Permalink Normal View History

2022-09-09 15:57:39 +03:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
sonic-server = {
url = "github:pleshevskiy/sonic";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
2022-09-09 15:57:39 +03:00
};
outputs = inputs @ { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
2022-09-09 15:57:39 +03:00
let
pkgs = import nixpkgs {
inherit system;
overlays = [ inputs.sonic-server.overlays.default ];
};
2022-09-09 15:57:39 +03:00
in
{
devShell = pkgs.mkShell {
packages = with pkgs; [ cargo rustc rustfmt clippy rust-analyzer sonic-server inetutils ];
2022-09-09 15:57:39 +03:00
RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc;
};
});
}