27 lines
771 B
Nix
27 lines
771 B
Nix
{
|
|
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";
|
|
};
|
|
};
|
|
|
|
outputs = inputs @ { self, nixpkgs, flake-utils, ... }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ inputs.sonic-server.overlays.default ];
|
|
};
|
|
in
|
|
{
|
|
devShell = pkgs.mkShell {
|
|
packages = with pkgs; [ cargo rustc rustfmt clippy rust-analyzer sonic-server inetutils ];
|
|
RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc;
|
|
};
|
|
});
|
|
}
|