2019-06-19 09:54:14 +00:00
{ nixpkgs-bootstrap ? import ./nix/nixpkgs-bootstrap.nix { } ,
pkgs ? nixpkgs-bootstrap . pkgs ,
2019-07-16 20:34:04 +00:00
target-os ? " n o n e " } :
2019-04-03 11:06:42 +00:00
let
2019-07-29 08:33:35 +00:00
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 ;
} ;
2019-07-04 14:49:21 +00:00
platform = pkgs . callPackage ./nix/platform.nix { inherit target-os ; } ;
2019-04-03 11:06:42 +00:00
# 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)
2019-07-04 14:49:21 +00:00
stdenv = pkgs . stdenvNoCC ;
2019-07-26 14:51:06 +00:00
# those should always be present in a shell
coreInputs = with pkgs ; [
2019-04-03 11:06:42 +00:00
# utilities
bash
curl
2019-04-29 16:33:40 +00:00
file
2019-09-13 13:45:24 +00:00
flock
2019-04-03 11:06:42 +00:00
git
2019-04-29 16:33:40 +00:00
gnumake
2019-04-03 11:06:42 +00:00
jq
wget
2019-06-04 16:50:29 +00:00
] ;
2019-07-26 14:51:06 +00:00
in mkShell {
name = " s t a t u s - r e a c t - s h e l l " ;
# none means we shouldn't include project specific deps
buildInputs = if target-os == " n o n e " 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 == " n o n e " then
[ ]
else
[ project . shell ] ;
2019-06-04 16:50:29 +00:00
shellHook = project . shell . shellHook ;
2019-05-10 15:33:54 +00:00
}