2019-04-27 07:34:33 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, pkgs }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "httplz";
|
2019-08-16 16:18:33 +00:00
|
|
|
version = "1.5.1";
|
2019-04-27 07:34:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thecoshman";
|
|
|
|
repo = "http";
|
|
|
|
rev = "v${version}";
|
2019-08-16 16:18:33 +00:00
|
|
|
sha256 = "00w8sy0m92by6lby1zb8hh36dnsrvwyyl56p6p7a1mf3iiq84r1y";
|
2019-04-27 07:34:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with pkgs; [ openssl pkgconfig ];
|
|
|
|
|
|
|
|
cargoBuildFlags = [ "--bin httplz" ];
|
|
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
2019-08-16 16:18:33 +00:00
|
|
|
cargoSha256 = "1axf15ma7fkbphjc6hjrbcj9rbd1x5i4kyz7fjrlqjgdsmvaqc93";
|
2019-04-27 07:34:33 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|