DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: 9e99a5db0520e795605360c3640661900b9cf2e9 deck-builder/shell.nix -rw-r--r-- 609 bytes
9e99a5dbJonni Liljamo feat(shared): derive deserialize for APIError 1 year, 9 months ago
                                                                                
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
let
  rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
  pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
  lib = pkgs.lib;
  rustVersion = "1.67.1";
  rust = pkgs.rust-bin.stable.${rustVersion}.default.override {
    extensions = [
      "rust-src"
    ];
  };
in
pkgs.mkShell {
  buildInputs = [
    rust
  ] ++ (with pkgs; [
    rust-analyzer
    pkg-config

    clang
    mold

    postgresql_15.lib
  ]);
  shellHook = ''
    export LD_LIBRARY_PATH="${lib.makeLibraryPath [ pkgs.postgresql_15.lib ]}";
  '';
  #RUST_BACKTRACE = 1;
}