aboutsummaryrefslogtreecommitdiffstats
path: root/shell.nix
diff options
context:
space:
mode:
authorEli Flanagan <eli@typedspace.com>2019-09-14 16:45:22 +0000
committerEli Flanagan <eli@typedspace.com>2019-09-14 16:45:22 +0000
commitf92fb9bd401198dbab27edf3bbd2435a104a1c72 (patch)
tree75f2d87fb7965c83951c87c78b4420da9f16b82a /shell.nix
parentwarn user if provided index file is not found (diff)
downloadminiserve-f92fb9bd401198dbab27edf3bbd2435a104a1c72.tar.gz
miniserve-f92fb9bd401198dbab27edf3bbd2435a104a1c72.zip
fix typo
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..8da2c58
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,17 @@
+# copied expressions from https://nixos.wiki/wiki/Rust
+# and Mozilla's nix overlay README
+let
+ moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
+ nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
+in
+ with nixpkgs;
+ stdenv.mkDerivation {
+ name = "rust_nightly_shell";
+ buildInputs = [
+ nixpkgs.latest.rustChannels.nightly.rust
+ openssl
+ # needed to correctly populate the
+ # nix specific paths to openssl libraries
+ pkgconfig
+ ];
+ }