mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-27 08:29:59 +00:00
* chore: improve nix-shell support * fix: add pkg-config * ci: add a github action to ensure build on clean system * ci: optimise dependencies of task * ci: move clean build to nightly
28 lines
559 B
Nix
28 lines
559 B
Nix
let
|
|
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-unstable";
|
|
fenix = import (fetchTarball "https://github.com/nix-community/fenix/archive/main.tar.gz") {};
|
|
pkgs = import nixpkgs { config = {}; overlays = []; };
|
|
in
|
|
|
|
pkgs.mkShell rec {
|
|
nativeBuildInputs = with pkgs; [
|
|
pkg-config
|
|
git
|
|
clang
|
|
gcc
|
|
protobuf
|
|
mold
|
|
(fenix.fromToolchainFile {
|
|
dir = ./.;
|
|
})
|
|
cargo-nextest
|
|
taplo
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
libgit2
|
|
];
|
|
|
|
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
|
|
}
|