diff options
Diffstat (limited to 'pkgs/tools/networking/httplz/default.nix')
-rw-r--r-- | pkgs/tools/networking/httplz/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/networking/httplz/default.nix b/pkgs/tools/networking/httplz/default.nix new file mode 100644 index 000000000000..21fc08a39a9e --- /dev/null +++ b/pkgs/tools/networking/httplz/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub, rustPlatform, pkgs }: + +rustPlatform.buildRustPackage rec { + pname = "httplz"; + version = "1.5.0"; + + src = fetchFromGitHub { + owner = "thecoshman"; + repo = "http"; + rev = "v${version}"; + sha256 = "0mb2wifz8pba03bdpiqadih33jimhg9crs4b72rcyfmj9l8fd1ba"; + }; + + buildInputs = with pkgs; [ openssl pkgconfig ]; + + cargoBuildFlags = [ "--bin httplz" ]; + cargoPatches = [ ./cargo-lock.patch ]; + cargoSha256 = "0cy23smal6y5qj6a202zf7l76vwkpzvcjmlbq0ffyph3gq07ps7b"; + + meta = with stdenv.lib; { + description = "A basic http server for hosting a folder fast and simply"; + homepage = https://github.com/thecoshman/http; + license = licenses.mit; + maintainers = with maintainers; [ bbigras ]; + }; +} |