excavator/flake.nix
2025-08-20 18:27:43 +02:00

33 lines
876 B
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, rust-overlay , ...}:
let
overlays = [ (import rust-overlay ) ];
in {
packages."x86_64-linux".default =
let
pkgs = import nixpkgs {
system = "x86_64-linux";
inherit overlays;
};
native-deps = with pkgs; [
];
in
pkgs.mkShell {
buildInputs = with pkgs; [
(rust-bin.stable.latest.default.override {
extensions = [ "rust-src" ];
targets = ["x86_64-unknown-linux-gnu" ];
})
cargo-bloat
] ++ native-deps;
LD_LIBRARY_PATH = (pkgs.lib.makeLibraryPath native-deps);
};
};
}