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 | |
| parent | e1ebfcd751ee5933da99bb21606b779edfe440b2 (diff) | |
Add flake for complete rust build
| -rw-r--r-- | flake.lock | 27 | ||||
| -rw-r--r-- | flake.nix | 29 |
2 files changed, 56 insertions, 0 deletions
diff --git a/flake.lock b/flake.lock new file mode 100644 index 00000000..55c1f108 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1780749050, + "narHash": "sha256-3av0pIjlOWQ6rDbNOmpUSvbNnJkGORQKKjb4LtCZsIY=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "a799d3e3886da994fa307f817a6bc705ae538eeb", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} 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" + ''; + }; + + }; + +} |
