status-react/shell.nix
Jakub Sokołowski b32dd113f6
nix: upgrade nixpkgs
Also:
- upgrade Go: 1.12 > 1.13
- upgrade Android SDK: 28.0.3 > 29.0.2
- nix: stop using system Fastlane for iOS builds
- nix: include CocoaPods in shell for iOS
- nix: concatenate shellHooks correctly
- fix gomobile status-go build by setting GO111MODULE=off
- fix gradle accepting empty STATUS_GO_SRC_OVERRIDE value
- don't use a pure shell for uploadToSauceLabs()

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-26 16:30:41 +01:00

40 lines
1.2 KiB
Nix

{ config ? { },
nixpkgs-bootstrap ? import ./nix/nixpkgs-bootstrap.nix { inherit config; },
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; [
bash curl file flock git gnumake jq wget
];
in mkShell {
name = "status-react-shell";
# none means we shouldn't include project specific deps
buildInputs =
coreInputs ++
stdenv.lib.optionals (target-os != "none") (with pkgs; [
unzip
ncurses
lsof # used in scripts/start-react-native.sh
ps # used in scripts/start-react-native.sh
clojure
leiningen
maven
watchman
]);
inputsFrom = stdenv.lib.optional (target-os != "none") project.shell;
}