Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • hugo/distance-precompute
  • network/gdev-900 protected
  • tuxmain/anonymous-tx
  • debug/podman
  • hugo/195-doc
  • hugo/195-graphql-schema
  • hugo-tmp-dockerfile-cache
  • release/client-800.2 protected
  • release/runtime-800 protected
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
  • runtime-701 protected
  • runtime-700 protected
  • runtime-600 protected
  • runtime-500 protected
  • v0.4.1 protected
  • runtime-401 protected
  • v0.4.0 protected
40 results

shell.nix

Blame
  • shell.nix 1.09 KiB
    let
      mozillaOverlay =
        import (builtins.fetchGit {
          url = "https://github.com/mozilla/nixpkgs-mozilla.git";
          rev = "57c8084c7ef41366993909c20491e359bbb90f54";
        });
      pinned = builtins.fetchGit {
        # Descriptive name to make the store path easier to identify
        name = "nixos-unstable-2020-04-26";
        url = "https://github.com/nixos/nixpkgs/";
        # Commit hash for nixos-unstable as of 2020-04-26
        # `git ls-remote https://github.com/nixos/nixpkgs nixos-unstable`
        ref = "refs/heads/nixos-unstable";
        rev = "1fe6ed37fd9beb92afe90671c0c2a662a03463dd";
      };
      nixpkgs = import pinned { overlays = [ mozillaOverlay ]; };
      rust-nightly = with nixpkgs; ((rustChannelOf { date = "2022-04-20"; channel = "nightly"; }).rust.override {
        targets = [ "wasm32-unknown-unknown" ];
      });
    in
    with nixpkgs; pkgs.mkShell {
      buildInputs = [
        clang
        pkg-config
        rust-nightly
      ] ++ stdenv.lib.optionals stdenv.isDarwin [
        darwin.apple_sdk.frameworks.Security
      ];
    
      LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
      PROTOC = "${protobuf}/bin/protoc";
      ROCKSDB_LIB_DIR = "${rocksdb}/lib";
    }