From 50d6645aab7a456acef417a51f43963366438bd3 Mon Sep 17 00:00:00 2001 From: John Shaffer Date: Thu, 20 Jan 2022 19:16:46 -0600 Subject: [PATCH] Add Nix files for dev dependencies --- .envrc | 1 + .gitignore | 1 + default.nix | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 .envrc create mode 100644 default.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/.gitignore b/.gitignore index 2edb1d7..36ae3b4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/.direnv/ /vendor/ /vendor_prefixed/ coverage/ diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..5d58024 --- /dev/null +++ b/default.nix @@ -0,0 +1,16 @@ +let + rev = "46725ae611741dd6d9a43c7e79d5d98ca9ce4328"; + nixpkgs = fetchTarball { + url = "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz"; + sha256 = "11srp3zfac0ahb1mxzkw3czlpmxc1ls7y219ph1r4wx2ndany9s9"; + }; + pkgs = import nixpkgs {}; +in with pkgs; +mkShell { + buildInputs = [ + php + phpPackages.composer + shellcheck + zip + ]; +}