forked from LFDT-Lockness/cggmp21
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
26 lines (23 loc) · 741 Bytes
/
shell.nix
File metadata and controls
26 lines (23 loc) · 741 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
let # Rust
pkgs = import <nixpkgs> { overlays = [ rustOverlay ]; };
lib = pkgs.lib;
isDarwin = pkgs.hostPlatform.isDarwin;
rustVersion = "1.75.0";
rustOverlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
rust = pkgs.rust-bin.stable.${rustVersion}.default.override {
extensions = [
"rust-src" # for rust-analyzer
];
};
# Latex
tex = (pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-small
collection-mathscience preprint;
});
in pkgs.stdenv.mkDerivation {
name = "signers-env";
nativeBuildInputs = [
rust pkgs.rust-analyzer tex pkgs.gnum4
];
buildInputs = lib.optionals isDarwin [pkgs.darwin.apple_sdk.frameworks.Security];
}