mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 00:00:37 +08:00
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>
22 lines
451 B
Nix
22 lines
451 B
Nix
{ sources ? import ./sources.nix
|
|
, pkgs ? import sources.nixpkgs {
|
|
overlays = [ (import sources.rust-overlay) ];
|
|
}
|
|
}:
|
|
let
|
|
stable = pkgs.rust-bin.stable.latest.default;
|
|
rust-overlay = stable.override {
|
|
extensions = [ "rust-src" "rust-analysis" ];
|
|
};
|
|
devault = (pkgs.callPackage ./default.nix {});
|
|
in
|
|
with pkgs;
|
|
mkShell {
|
|
name = "development";
|
|
buildInputs = devault.buildInputs ++ [
|
|
gcc
|
|
|
|
ripgrep
|
|
];
|
|
}
|