-
Notifications
You must be signed in to change notification settings - Fork 979
/
shell.nix
52 lines (48 loc) · 1.29 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
{ nixpkgs-bootstrap ? import ./nix/nixpkgs-bootstrap.nix { },
pkgs ? nixpkgs-bootstrap.pkgs,
target-os ? "none" }:
let
project = import ./default.nix {
inherit target-os pkgs nixpkgs-bootstrap;
inherit (nixpkgs-bootstrap) config;
};
mkShell = pkgs.callPackage ./nix/bootstrapped-shell.nix {
inherit stdenv target-os;
inherit (pkgs) mkShell;
};
platform = pkgs.callPackage ./nix/platform.nix { inherit target-os; };
# TODO: Try to use stdenv for iOS. The problem is with building iOS as the build is trying to pass parameters to Apple's ld that are meant for GNU's ld (e.g. -dynamiclib)
stdenv = pkgs.stdenvNoCC;
# those should always be present in a shell
coreInputs = with pkgs; [
# utilities
bash
curl
file
git
gnumake
jq
wget
];
in mkShell {
name = "status-react-shell";
# none means we shouldn't include project specific deps
buildInputs = if target-os == "none" then
coreInputs
else
with pkgs; [
unzip
ncurses
lsof # used in scripts/start-react-native.sh
ps # used in scripts/start-react-native.sh
clojure
leiningen
maven
watchman
] ++ coreInputs;
inputsFrom = if target-os == "none" then
[]
else
[ project.shell ];
shellHook = project.shell.shellHook;
}