-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
36 lines (31 loc) · 898 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
# 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/4106c7519bff1d14fa5f942da645b3f18d16309e.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.erlangR25
pkgs.beam.packages.erlangR25.elixir_1_14
];
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;
}