forked from alevy/allora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
39 lines (35 loc) · 846 Bytes
/
shell.nix
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
38
39
# Shell expression for the Nix package manager
#
# This nix expression creates an environment with necessary packages installed:
#
# * `tockloader`
# * rust
#
# To use:
#
# $ nix-shell
#
{ pkgs ? import <nixpkgs> {} }:
with builtins;
let
inherit (pkgs) stdenv lib;
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
rust_date = "2023-03-10";
rust_channel = "nightly";
rust_targets = [
"aarch64-unknown-none"
];
rust_build = (nixpkgs.rustChannelOfTargets rust_channel rust_date rust_targets).override {
extensions = [ "rust-src" "llvm-tools-preview" ];
};
in
with pkgs;
stdenv.mkDerivation {
name = "aarchos-dev";
buildInputs = [
rust_build
rustup
qemu
];
}