mirror of
https://github.com/MonsterDruide1/OdysseyDecomp.git
synced 2024-11-26 23:00:25 +00:00
51 lines
1.4 KiB
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
}
|