-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
59 lines (57 loc) · 1.16 KB
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
let
nixpkgsVersion = {
url = "https://github.com/NixOS/nixpkgs/archive/ab3ea20adfe05a2328b4991612912ef7db67af83.tar.gz";
sha256 = "1l0q15x3l4p7y43jqjvg92nq5wfw7k3ixkp5rqzyvzbz2rcv4rss";
};
pinnedPkgs = import (fetchTarball nixpkgsVersion) { };
in pinnedPkgs.mkShell {
buildInputs = with pinnedPkgs; [
(php82.withExtensions ({ all, ... }:
with all; [
curl
dom
filter
gd
intl
mbstring
opcache
openssl
pdo
pdo_mysql
simplexml
tokenizer
xmlwriter
zlib
]))
_7zz
curl
file
gifsicle
gnupg
hadolint
icu
jpeginfo
jpegoptim
jq
libwebp
libxml2
maven
mdbtools
nodejs
oxipng
pngcheck
pngquant
shellcheck
shfmt
unzip
yamllint
];
shellHook = ''
if [ ! -d "./node_modules" ]; then
echo "Installing dependencies..."
npm ci
else
echo "Dependencies already installed. Delete node_modules directory to reinstall or update them."
fi
'';
}