nixpkgs/pkgs/tools/networking/httplz/default.nix

27 lines
836 B
Nix
Raw Normal View History

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