2022-09-09 15:57:39 +03:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2022-10-24 18:06:28 +03:00
|
|
|
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
|
|
|
};
|
|
|
|
|
2022-10-24 18:06:28 +03:00
|
|
|
outputs = inputs @ { self, nixpkgs, flake-utils, ... }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
2022-09-09 15:57:39 +03:00
|
|
|
let
|
2022-10-24 18:06:28 +03:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [ inputs.sonic-server.overlays.default ];
|
|
|
|
};
|
2022-09-09 15:57:39 +03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
devShell = pkgs.mkShell {
|
2022-10-24 18:06:28 +03:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|