-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathflake.nix
46 lines (41 loc) · 1.18 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, rust-overlay, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ rust-overlay.overlays.default ];
};
rustbin = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override {
extensions = [ "rust-src" "rust-analyzer" "miri" ];
});
clangVersion = "19";
in
{
devShells.${system}.default = pkgs.mkShell {
packages = [
rustbin
pkgs.cargo-show-asm
pkgs.cargo-expand
pkgs.cargo-flamegraph
pkgs.cargo-valgrind
pkgs.cargo-fuzz
pkgs.cargo-pgo
pkgs.openssl
pkgs.pkg-config
pkgs."clang_${clangVersion}"
pkgs."llvmPackages_${clangVersion}".bintools
pkgs."bolt_${clangVersion}"
pkgs.cmake
];
LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ pkgs."llvmPackages_${clangVersion}".libclang.lib ];
};
};
}