diff options
| author | gerard <gerard@example.com> | 2026-06-08 12:56:59 +0200 |
|---|---|---|
| committer | gerard <gerard@example.com> | 2026-06-08 12:56:59 +0200 |
| commit | 337fcfb0901d69b7f25ce653e4b0798318a86a3a (patch) | |
| tree | c9212e60c3ce2e3394448ebf6a83f32333e728ba /flake.nix | |
| parent | e1ebfcd751ee5933da99bb21606b779edfe440b2 (diff) | |
Add flake for complete rust build
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 00000000..173c31fc --- /dev/null +++ b/flake.nix @@ -0,0 +1,29 @@ +{ + description = "Binja-api dev flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; + + outputs = { self, nixpkgs }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { inherit system; }; + in { + + devShells."${system}".default = pkgs.mkShell { + nativeBuildInputs = [ + pkgs.rustc + pkgs.cargo + pkgs.llvmPackages.libclang + pkgs.bacon + pkgs.cmake + ]; + shellHook = '' + export LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib" + ''; + }; + + }; + +} |
