2019-06-19 09:54:14 +00:00
{ nixpkgs-bootstrap ? import ./nix/nixpkgs-bootstrap.nix { } ,
pkgs ? nixpkgs-bootstrap . pkgs ,
2019-04-03 11:06:42 +00:00
target-os ? " a l l " } :
let
2019-06-04 16:50:29 +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 ; 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-04-03 11:06:42 +00:00
2019-07-04 14:49:21 +00:00
in mkShell {
buildInputs = with pkgs ; [
2019-04-03 11:06:42 +00:00
# utilities
bash
curl
2019-04-29 16:33:40 +00:00
file
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
ncurses
lsof # used in scripts/start-react-native.sh
ps # used in scripts/start-react-native.sh
unzip
wget
2019-04-03 20:12:31 +00:00
2019-06-04 16:50:29 +00:00
clojure
leiningen
maven
watchman
] ;
inputsFrom = [ project . shell ] ;
TARGET_OS = target-os ;
shellHook = project . shell . shellHook ;
2019-05-10 15:33:54 +00:00
}