2020-01-30 11:49:10 +00:00
|
|
|
let
|
2022-01-04 11:07:43 +00:00
|
|
|
oxalica_overlay = import (builtins.fetchTarball
|
|
|
|
"https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
|
|
|
|
|
|
|
|
pkgs = import <nixpkgs> { overlays = [ oxalica_overlay ]; };
|
|
|
|
rust_channel = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain;
|
|
|
|
#rust_channel = pkgs.rust-bin.stable.latest.default;
|
2020-01-30 11:49:10 +00:00
|
|
|
in
|
2022-01-04 11:07:43 +00:00
|
|
|
pkgs.mkShell {
|
|
|
|
nativeBuildInputs = [
|
|
|
|
(rust_channel.override {
|
|
|
|
extensions = [ "rust-src" "rust-std" "clippy" ];
|
|
|
|
targets = [
|
|
|
|
"x86_64-unknown-linux-gnu"
|
|
|
|
];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with pkgs; [
|
2022-01-04 14:13:39 +00:00
|
|
|
sqlite
|
2022-01-04 11:07:43 +00:00
|
|
|
openssl
|
2020-01-30 11:49:10 +00:00
|
|
|
|
|
|
|
clang
|
|
|
|
nettle
|
|
|
|
pkgconfig
|
2020-02-03 13:18:08 +00:00
|
|
|
|
|
|
|
gettext
|
|
|
|
transifex-client
|
2020-01-30 11:49:10 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Set Environment Variables
|
|
|
|
RUST_BACKTRACE = 1;
|
|
|
|
|
|
|
|
# compilation of -sys packages requires manually setting this :(
|
|
|
|
shellHook = ''
|
2022-01-04 11:07:43 +00:00
|
|
|
export LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib";
|
2020-01-30 11:49:10 +00:00
|
|
|
'';
|
|
|
|
}
|
2022-01-04 11:07:43 +00:00
|
|
|
|