首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >这个文件是用什么语言写的?

这个文件是用什么语言写的?
EN

Stack Overflow用户
提问于 2022-02-28 18:04:55
回答 1查看 67关注 0票数 0

我试着理解这个文件是用什么语言写的?我想知道,但在这里作者没有具体说明语言。

https://github.com/status-im/status-react/blob/develop/nix/status-go/default.nix

代码语言:javascript
复制
{ lib, callPackage, mkShell, openjdk, androidPkgs }:

let
  inherit (lib)
    catAttrs concatStrings concatStringsSep fileContents makeBinPath
    getConfig optional attrValues mapAttrs attrByPath;

  # Metadata common to all builds of status-go
  meta = {
    description = "The Status Go module that consumes go-ethereum.";
    license = lib.licenses.mpl20;
    platforms = with lib.platforms; linux ++ darwin;
  };

  # Source can be changed with a local override from config
  source = callPackage ./source.nix { };

  # Params to be set at build time, important for About section and metrics
  goBuildParams = {
    GitCommit = source.rev;
    Version = source.cleanVersion;
  };

  # These are necessary for status-go to show correct version
  paramsLdFlags = attrValues (mapAttrs (name: value:
    "-X github.com/status-im/status-go/params.${name}=${value}"
  ) goBuildParams);

  goBuildLdFlags = paramsLdFlags ++ [
    "-s" # -s disabled symbol table
    "-w" # -w disables DWARF debugging information
  ];

  goBuildFlags = [ "-v" ];

in rec {
  mobile = callPackage ./mobile {
    inherit meta source goBuildFlags goBuildLdFlags;
  };

  shell = mkShell {
    inputsFrom = [ mobile.android mobile.ios ];
  };
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-03-01 09:02:25

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71299215

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档