aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
blob: 9f6b23c80234b6cea8ccf68b7afc367d919e92d5 (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
30
31
{ pkgs ? import <nixpkgs> {} }:

let
  sources = import ./nix/sources.nix;
  nixpkgs-mozilla = import sources.nixpkgs-mozilla;
  pkgs = import sources.nixpkgs {
    overlays =
      [
        nixpkgs-mozilla
        (self: super:
        {
          rustc = self.latest.rustChannels.stable.rust;
          cargo = self.latest.rustChannels.stable.rust;
        }
        )
      ];
    };
in
  pkgs.mkShell {
    buildInputs = with pkgs; [
      cargo
      rustc
      rustfmt
      pkg-config
      openssl
      httpie
      curl
      diesel-cli
      libmysqlclient
    ];
  }