forked from rust-lang/rustc_public
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
37 lines (31 loc) · 868 Bytes
/
Copy pathflake.nix
File metadata and controls
37 lines (31 loc) · 868 Bytes
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
32
33
34
35
36
37
{
description = "Development environment for project-stable-mir josh synchronization";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
runtimeLibs = with pkgs;[
openssl
];
in
{
devShells.${system}.default = pkgs.mkShell {
# Tools executed at build/compile time
nativeBuildInputs = with pkgs; [
pkg-config
rustup
git
];
# Libraries linked against the binaries
buildInputs = runtimeLibs;
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath runtimeLibs;
shellHook = ''
export CARGO_INSTALL_ROOT=$PWD/.nix-cargo
export PATH=$CARGO_INSTALL_ROOT/bin:$PATH
'';
};
};
}