Files
heartwood/.nix/default.nix
T
Fintan Halpenny 50dd817762 meta: add nix tooling
Adds nix tooling to allow people to develop using nix dependencies.

Uses niv to pin nixpkgs, rust-overlay, and niv itself.

This will give Rust tooling that is up to date with rustc-1.64.0.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
2022-10-12 12:21:01 +02:00

22 lines
414 B
Nix

{ sources ? import ./sources.nix
, pkgs ? import sources.nixpkgs {
overlays = [ (import sources.rust-overlay) ];
}
, rust-overlay ? pkgs.rust-bin.stable.latest.default
}:
with pkgs;
mkShell {
name = "build";
buildInputs = [
# cargo tooling
cargo-deny
cargo-watch
# hard dependencies
cmake
openssl
pkgconfig
rust-overlay
];
}