-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
41 lines (35 loc) · 971 Bytes
/
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
# change the pkgs import to a tag when there is a 22.XX version
# at the moment we need a specific SHA to be able to use m1 chromedriver
{
lib ? import <lib> {},
pkgs ? import (fetchTarball https://github.com/NixOS/nixpkgs/archive/a40082270194f2068e6cfb4d26d53d511fc8c34b.zip) {}
}:
let
# define packages to install with special handling for OSX
basePackages = [
pkgs.gnumake
pkgs.gcc
pkgs.readline
pkgs.zlib
pkgs.libxml2
pkgs.libiconv
pkgs.openssl
pkgs.curl
pkgs.git
pkgs.python3
pkgs.postgresql
pkgs.erlangR24
pkgs.beam.packages.erlangR24.elixir_1_13
pkgs.nodejs-16_x
pkgs.yarn
];
inputs = basePackages
++ [ pkgs.bashInteractive ]
++ pkgs.lib.optionals pkgs.stdenv.isLinux [ pkgs.inotify-tools ]
++ pkgs.lib.optionals pkgs.stdenv.isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
CoreFoundation
CoreServices
]);
in pkgs.mkShell {
buildInputs = inputs;
}