2019-06-19 11:54:14 +02:00
{ nixpkgs-bootstrap ? import ./nix/nixpkgs-bootstrap.nix { } ,
pkgs ? nixpkgs-bootstrap . pkgs ,
2019-07-16 16:34:04 -04:00
target-os ? " n o n e " } :
2019-04-03 13:06:42 +02:00
let
2019-07-29 10:33:35 +02: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 16:49:21 +02:00
platform = pkgs . callPackage ./nix/platform.nix { inherit target-os ; } ;
2019-04-03 13:06:42 +02: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 16:49:21 +02:00
stdenv = pkgs . stdenvNoCC ;
2019-07-26 10:51:06 -04:00
# those should always be present in a shell
coreInputs = with pkgs ; [
2019-04-03 13:06:42 +02:00
# utilities
bash
curl
2019-04-29 18:33:40 +02:00
file
2019-09-13 15:45:24 +02:00
flock
2019-04-03 13:06:42 +02:00
git
2019-04-29 18:33:40 +02:00
gnumake
2019-04-03 13:06:42 +02:00
jq
wget
2019-06-04 18:50:29 +02:00
] ;
2019-07-26 10:51:06 -04: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 18:50:29 +02:00
shellHook = project . shell . shellHook ;
2019-05-10 17:33:54 +02:00
}