mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-08 14:22:58 +00:00
* chore: update toolchain to 2024-12-25 * chore: fix clippy * feat: update flakes * chore: remove `rerun-if-changed` for now * chore: update shadow-rs * fix: clippy * chore: update version in DEV_BUILDER_IMAGE_TAG --------- Co-authored-by: Ning Sun <sunning@greptime.com>
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
description = "Development environment flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
|
fenix = {
|
|
url = "github:nix-community/fenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, fenix, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
buildInputs = with pkgs; [
|
|
libgit2
|
|
libz
|
|
];
|
|
|
|
in
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs; [
|
|
pkg-config
|
|
git
|
|
clang
|
|
gcc
|
|
protobuf
|
|
gnumake
|
|
mold
|
|
(fenix.packages.${system}.fromToolchainFile {
|
|
dir = ./.;
|
|
sha256 = "sha256-f/CVA1EC61EWbh0SjaRNhLL0Ypx2ObupbzigZp8NmL4=";
|
|
})
|
|
cargo-nextest
|
|
cargo-llvm-cov
|
|
taplo
|
|
curl
|
|
];
|
|
|
|
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
|
|
};
|
|
});
|
|
}
|