2019-09-13 15:00:54 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, rustPlatform, openssl, pkgconfig, darwin, libiconv }:
|
2019-04-27 09:34:33 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "httplz";
|
2019-08-20 03:33:13 +02:00
|
|
|
version = "1.5.2";
|
2019-04-27 09:34:33 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thecoshman";
|
|
|
|
repo = "http";
|
|
|
|
rev = "v${version}";
|
2019-08-20 03:33:13 +02:00
|
|
|
sha256 = "0q9ng8vf01k65zmcm7bbkqyrkj5hs86zdxwrfj98f4xqxrm75rf6";
|
2019-04-27 09:34:33 +02:00
|
|
|
};
|
|
|
|
|
2019-09-13 15:00:54 +02:00
|
|
|
buildInputs = [ openssl pkgconfig ] ++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
|
2019-04-27 09:34:33 +02:00
|
|
|
|
|
|
|
cargoBuildFlags = [ "--bin httplz" ];
|
|
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
2019-08-20 03:33:13 +02:00
|
|
|
cargoSha256 = "18qr3sy4zj4lwbzrz98d82kwagfbzkmrxk5sxl7w9vhdzy2diskw";
|
2019-04-27 09:34:33 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|