1 { stdenv, lib, fetchFromGitHub, makeWrapper, rustPlatform
2 , openssl, pkg-config, darwin, libiconv }:
4 rustPlatform.buildRustPackage rec {
8 src = fetchFromGitHub {
12 sha256 = "154alxxclz78r29m656c8yahnzq0vd64s4sp19h0ca92dfw4s46y";
15 nativeBuildInputs = [ makeWrapper pkg-config ];
16 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
17 libiconv darwin.apple_sdk.frameworks.Security
20 cargoBuildFlags = [ "--bin httplz" ];
21 cargoPatches = [ ./cargo-lock.patch ];
22 cargoSha256 = "1rpwzrr9bvw375vn97y5fqhraqz35d3ani9kfflvn2758x3g8gwf";
25 wrapProgram $out/bin/httplz \
26 --prefix PATH : "${openssl}/bin"
30 description = "A basic http server for hosting a folder fast and simply";
31 homepage = "https://github.com/thecoshman/http";
32 license = licenses.mit;
33 maintainers = with maintainers; [ ];