{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
fenix.url = "github:nix-community/fenix";
fenix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{
self,
nixpkgs,
flake-utils,
fenix,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
system = system;
};
packages = with pkgs; [
cargo-info
cargo-udeps
just
pkg-config
(
with fenix.packages.${system};
combine [
complete.rustc
complete.rust-src
complete.cargo
complete.clippy
complete.rustfmt
complete.rust-analyzer
]
)
];
libraries = with pkgs; [
openssl
];
in
{
devShell = pkgs.mkShell {
buildInputs = packages ++ libraries;
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath libraries;
};
}
);
}