Apache DataFusion SQL Query Engine
feat: add Nix flake and direnv support (#26005)
Vova Kotdb83fccb9ac1
diff --git a/.envrc b/.envrcnew file mode 100644index 0000000000..3550a30f2d--- /dev/null+++ b/.envrc@@ -0,0 +1 @@+use flakediff --git a/.gitignore b/.gitignoreindex 2bcc0950d0..e100fce560 100644--- a/.gitignore+++ b/.gitignore@@ -69,6 +69,10 @@ datafusion/core/*.parquet# Generated core benchmark datadatafusion/core/benches/data/*+# Generated Nix environment hooks++.direnv/+# ratfiltered_rat.txtrat.txtdiff --git a/flake.lock b/flake.locknew file mode 100644index 0000000000..87c81fdd32--- /dev/null+++ b/flake.lock@@ -0,0 +1,61 @@+{+ "nodes": {+ "flake-utils": {+ "inputs": {+ "systems": "systems"+ },+ "locked": {+ "lastModified": 1731533236,+ "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",+ "owner": "numtide",+ "repo": "flake-utils",+ "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",+ "type": "github"+ },+ "original": {+ "owner": "numtide",+ "repo": "flake-utils",+ "type": "github"+ }+ },+ "nixpkgs": {+ "locked": {+ "lastModified": 1790920529,+ "narHash": "sha256-nQyFkMR78WP6PiXKkDW2SjqzLf/spQqjRuxRGSbcV8k=",+ "owner": "nixos",+ "repo": "nixpkgs",+ "rev": "774debe7a0d1b496e35677ad955a1011c6ff74f3",+ "type": "github"+ },+ "original": {+ "owner": "nixos",+ "ref": "nixos-26.05",+ "repo": "nixpkgs",+ "type": "github"+ }+ },+ "root": {+ "inputs": {+ "flake-utils": "flake-utils",+ "nixpkgs": "nixpkgs"+ }+ },+ "systems": {+ "locked": {+ "lastModified": 1681028828,+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",+ "owner": "nix-systems",+ "repo": "default",+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",+ "type": "github"+ },+ "original": {+ "owner": "nix-systems",+ "repo": "default",+ "type": "github"+ }+ }+ },+ "root": "root",+ "version": 7+}diff --git a/flake.nix b/flake.nixnew file mode 100644index 0000000000..1f7f43b8db--- /dev/null+++ b/flake.nix@@ -0,0 +1,28 @@+{+ description = "DataFusion development environment";++ inputs = {+ nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";+ flake-utils.url = "github:numtide/flake-utils";+ };++ outputs = {+ nixpkgs,+ flake-utils,+ ...+ }:+ flake-utils.lib.eachDefaultSystem (system: let+ pkgs = import nixpkgs {inherit system;};+ in {+ devShells.default = pkgs.mkShell {+ nativeBuildInputs = [+ pkgs.pkg-config+ ];++ buildInputs = [+ pkgs.openssl+ pkgs.protobuf+ ];+ };+ });+}