anchor.diff:    postInstall = ''
       mkdir -p $bin
       cp -r "$NIX_BUILD_TOP/go/bin/" $bin
  +   
  +    ${mobileInstallScript}
   
  -    mkdir -p $out/lib/${mobileTarget}
  -    mv ${mobileOutputFileName} $out/lib/${mobileTarget}/
  -
  -    mkdir -p $out/lib/${destopSystem} $out/include
  -    mv $out/${desktopOutputFileName} $out/lib/${destopSystem}
  +    mkdir -p $out/lib/${desktopSystem} $out/include
  +    mv $out/${desktopOutputFileName} $out/lib/${desktopSystem}
       mv $out/libstatus.h $out/include
     '';
   
  
positive.code: with stdenv;
  
  let
     gomobile = pkgs.callPackage ./gomobile { inherit (androidPkgs) platform-tools; inherit composeXcodeWrapper xcodewrapperArgs; };
     version = lib.fileContents ../../STATUS_GO_VERSION; # TODO: Simplify this path search with lib.locateDominatingFile
     owner = lib.fileContents ../../STATUS_GO_OWNER;
     repo = "status-go";
     goPackagePath = "github.com/${owner}/${repo}";
     rev = version;
     sha256 = lib.fileContents ../../STATUS_GO_SHA256;
     mobileTarget = if isDarwin then "ios" else "android";
     mobileOutputFileName = if isDarwin then "Statusgo.framework" else "status-go-${version}.aar";
     desktopOutputFileName = "libstatus.a";
     destopSystem = hostPlatform.system;
     removeReferences = [ go ];
     removeExpr = refs: ''remove-references-to ${lib.concatMapStrings (ref: " -t ${ref}") refs}'';
     goBuildFlags = "-v";
     goBuildLdFlags = "-ldflags=-s";
     xcodeWrapper = composeXcodeWrapper xcodewrapperArgs;
  
  in buildGoPackage rec {
    inherit goPackagePath version rev;
  
negative.code: 
      # Build mobile libraries
      # TODO: Manage to pass -s -w to -ldflags. Seems to only accept a single flag
      ${mobileBuildScript}
  
      runHook postBuild
    '';
  