Debian Codegraph @

Xtermina/flake.nix

raw symbols SCIP
1 {
2 description = "A cross-platform VT manipulation library";
3
4 inputs = {
5 nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
6 rust-overlay.url = "github:oxalica/rust-overlay";
7 };
8
9 outputs =
10 { nixpkgs, rust-overlay, ... }:
11 let
12 inherit (nixpkgs) lib;
13 forEachSystem = lib.genAttrs lib.systems.flakeExposed;
14 in
15 {
16 devShell = forEachSystem (
17 system:
18 let
19 pkgs = import nixpkgs {
20 inherit system;
21 overlays = [ rust-overlay.overlays.default ];
22 };
23 toolchain = pkgs.rust-bin.stable.latest.default;
24 in
25 pkgs.mkShell {
26 nativeBuildInputs =
27 with pkgs;
28 [
29 (toolchain.override {
30 extensions = [
31 "rust-src"
32 "clippy"
33 "llvm-tools-preview"
34 ];
35 })
36 rust-analyzer
37 ]
38 ++ (lib.optionals stdenv.isLinux [
39 cargo-llvm-cov
40 cargo-flamegraph
41 valgrind
42 ]);
43 RUST_BACKTRACE = "1";
44 }
45 );
46 };
47 }