OdysseyDecomp/flake.nix
2024-08-10 22:21:33 +02:00

51 lines
1.4 KiB
Nix

{
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";
};
};
};
}