Skip to content

Commit

Permalink
fixup! Create Nix package for building status-go
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Pombeiro committed Apr 6, 2019
1 parent 89a3f4a commit ea22e0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nix/status-go/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
with stdenv;

let
gomobile = pkgs.callPackage ./gomobile { inherit androidPkgs xcodeWrapper; };
gomobile = pkgs.callPackage ./gomobile { inherit (androidPkgs) platform-tools xcodeWrapper; };
version = lib.fileContents ../../STATUS_GO_VERSION; # TODO: Simplify this path search with lib.locateDominatingFile
owner = lib.fileContents ../../STATUS_GO_OWNER;
repo = "status-go";
Expand Down
4 changes: 2 additions & 2 deletions nix/status-go/gomobile/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, pkgs, buildGoPackage, fetchgit,
glibc, ncurses5, zlib, androidPkgs,
glibc, ncurses5, zlib, platform-tools,
makeWrapper, patchelf, xcodeWrapper
}:

Expand All @@ -26,7 +26,7 @@ buildGoPackage rec {
++ lib.optional isDarwin [ ./ignore-nullability-error-on-ios.patch ];

postPatch = ''
substituteInPlace cmd/gomobile/install.go --replace "\`adb\`" "\`${androidPkgs.androidsdk}/bin/adb\`"
substituteInPlace cmd/gomobile/install.go --replace "\`adb\`" "\`${platform-tools}/bin/adb\`"
echo "Creating $dev"
mkdir -p $dev/src/$goPackagePath
Expand Down

0 comments on commit ea22e0a

Please sign in to comment.