-
Notifications
You must be signed in to change notification settings - Fork 27
/
flake.nix
50 lines (48 loc) · 1.44 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
47
48
49
50
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
flake-parts.url = "github:hercules-ci/flake-parts";
systems.url = "github:nix-systems/default";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
perSystem = { config, self', inputs', pkgs, system, ... }: let
overlays = [ (import inputs.rust-overlay) ];
pkgs = import inputs.nixpkgs {
inherit system overlays;
};
rustToolchain = pkgs.pkgsBuildHost.rust-bin.stable.latest.default;
in {
_module.args.pkgs = import inputs.nixpkgs {
config.allowUnfree = true;
};
devShells.default = pkgs.mkShell rec {
buildInputs = with pkgs; [
cmake
ninja
clang
ccache
pkg-config
rustToolchain
(python3.withPackages (python-pkgs: [
python-pkgs.capstone
python-pkgs.colorama
python-pkgs.cxxfilt
python-pkgs.pyelftools
python-pkgs.ansiwrap
python-pkgs.watchdog
python-pkgs.python-Levenshtein
python-pkgs.toml
]))
openssl
libclang
ncurses5
ncurses6
];
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}";
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
};
};
};
}