aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
blob: ee5c1cc9460e0e55e05600bc31394c3adf273546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
with (import (builtins.fetchGit {
  name = "nixpkgs-20.03";
  url = "git@github.com:nixos/nixpkgs.git";
  rev = "5272327b81ed355bbed5659b8d303cf2979b6953";
  ref = "refs/tags/20.03";
}) {});

let nixpkgs-mozilla = fetchFromGitHub {
      owner = "mozilla";
      repo = "nixpkgs-mozilla";
      # commit from: 2020-01-31
      rev = "969a1e467abbb91affbf0c24ddf773d2bdf70ccd";
      sha256 = "13j54pzd9sfyimcmzl0hahzhvr930kiqj839nyk7yxp3nr0zy2xx";
   };
in

with import "${nixpkgs-mozilla.out}/rust-overlay.nix" pkgs pkgs;

pkgs.mkShell {

  buildInputs = [
    ((rustChannelOf { channel = "1.43.1"; }).rust.override {
      targets = [ "x86_64-unknown-linux-musl" ];
    })
    cargo-watch
    pkgconfig openssl
  ];

}