From f92fb9bd401198dbab27edf3bbd2435a104a1c72 Mon Sep 17 00:00:00 2001 From: Eli Flanagan Date: Sat, 14 Sep 2019 12:45:22 -0400 Subject: fix typo --- shell.nix | 17 +++++++++++++++++ src/args.rs | 2 +- src/main.rs | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 shell.nix 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 { 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 + ]; + } diff --git a/src/args.rs b/src/args.rs index d31cb26..0d4e3ce 100644 --- a/src/args.rs +++ b/src/args.rs @@ -27,7 +27,7 @@ struct CLIArgs { #[structopt(name = "PATH", parse(from_os_str))] path: Option, - /// name of an index files to serve by default + /// name of an index file to serve by default #[structopt(long, parse(from_os_str), name="index_file")] index: Option, diff --git a/src/main.rs b/src/main.rs index d5055b9..3bb521c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -52,7 +52,7 @@ pub struct MiniserveConfig { /// Default color scheme pub default_color_scheme: themes::ColorScheme, - /// name of an index files to serve by default + /// name of an index file to serve by default pub index: Option, /// Enable file upload -- cgit v1.2.3