2019-11-15 15:26:25 +00:00
{ config ? { } ,
2019-11-15 15:04:36 +00:00
nixpkgs-bootstrap ? import ./nix/nixpkgs-bootstrap.nix { inherit config ; } ,
2019-06-19 09:54:14 +00:00
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-11-20 12:42:41 +00:00
bash curl file flock git gnumake 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
2019-11-20 12:42:41 +00:00
buildInputs =
coreInputs ++
stdenv . lib . optionals ( target-os != " n o n e " ) ( with pkgs ; [
2019-07-26 14:51:06 +00:00
unzip
ncurses
lsof # used in scripts/start-react-native.sh
ps # used in scripts/start-react-native.sh
clojure
leiningen
maven
watchman
2019-11-20 12:42:41 +00:00
] ) ;
inputsFrom = stdenv . lib . optional ( target-os != " n o n e " ) project . shell ;
2019-05-10 15:33:54 +00:00
}