github.com/smartcontractkit/chainlink-terra@v0.1.4/shell.nix (about)

     1  { stdenv, pkgs, lib }:
     2  
     3  pkgs.mkShell {
     4    nativeBuildInputs = with pkgs; [
     5      (rust-bin.stable.latest.default.override {
     6        extensions = ["rust-src"];
     7        targets = [
     8          "x86_64-unknown-linux-gnu" # Used on CI
     9          "wasm32-unknown-unknown"
    10        ];
    11      })
    12      cargo-generate
    13      cargo-tarpaulin
    14      gcc
    15      # pkg-config
    16      # openssl
    17  
    18      (pkgs.callPackage ./terrad.nix {})
    19  
    20      # Golang
    21      # Keep this golang version in sync with the version in .tool-versions please
    22      go_1_17
    23      gopls
    24      delve
    25      golangci-lint
    26      goimports
    27  
    28      # NodeJS + TS
    29      nodePackages.typescript-language-server
    30      # Keep this nodejs version in sync with the version in .tool-versions please
    31      nodejs-14_x
    32      (yarn.override { nodejs = nodejs-14_x; })
    33      libusb1
    34    ];
    35    RUST_BACKTRACE = "1";
    36    GOROOT="${pkgs.go_1_17}/share/go";
    37    
    38    # Avoids issues with delve
    39    CGO_CPPFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0";
    40  }