httplz: 1.9.2 -> 1.12.1

This commit is contained in:
figsoda 2021-10-04 16:35:38 -04:00
parent b995290d0b
commit 342267b0f0
3 changed files with 37 additions and 1291 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,27 +1,46 @@
{ stdenv, lib, fetchFromGitHub, makeWrapper, rustPlatform { lib
, openssl, pkg-config, darwin, libiconv }: , rustPlatform
, fetchCrate
, installShellFiles
, makeWrapper
, pkg-config
, ronn
, openssl
, stdenv
, libiconv
, Security
}:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "httplz"; pname = "httplz";
version = "1.9.2"; version = "1.12.1";
src = fetchFromGitHub { src = fetchCrate {
owner = "thecoshman"; inherit version;
repo = "http"; pname = "https";
rev = "v${version}"; sha256 = "sha256-vMhQHWzsZlqMVkEQHCZTB8T4ETTaf8iAS9QhgYdfcx0=";
sha256 = "154alxxclz78r29m656c8yahnzq0vd64s4sp19h0ca92dfw4s46y";
}; };
nativeBuildInputs = [ makeWrapper pkg-config ]; cargoSha256 = "sha256-9gnKVZ3HQs3kNj4i1cgC+Jl3dhjx7QRaHSih1HOB3nI=";
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
libiconv darwin.apple_sdk.frameworks.Security nativeBuildInputs = [
installShellFiles
makeWrapper
pkg-config
ronn
]; ];
cargoBuildFlags = [ "--bin httplz" ]; buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
cargoPatches = [ ./cargo-lock.patch ]; libiconv
cargoSha256 = "0r33vg9431jv32r03ryxb3rc4mp6h1kc00d3h1knssfvkwsh31yn"; Security
];
cargoBuildFlags = [ "--bin" "httplz" ];
postInstall = '' postInstall = ''
sed -E 's/http(`| |\(|$)/httplz\1/g' http.md > httplz.1.ronn
RUBYOPT=-Eutf-8:utf-8 ronn --organization "http developers" -r httplz.1.ronn
installManPage httplz.1
wrapProgram $out/bin/httplz \ wrapProgram $out/bin/httplz \
--prefix PATH : "${openssl}/bin" --prefix PATH : "${openssl}/bin"
''; '';
@ -30,6 +49,6 @@ rustPlatform.buildRustPackage rec {
description = "A basic http server for hosting a folder fast and simply"; description = "A basic http server for hosting a folder fast and simply";
homepage = "https://github.com/thecoshman/http"; homepage = "https://github.com/thecoshman/http";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ figsoda ];
}; };
} }

View file

@ -6109,7 +6109,9 @@ with pkgs;
httping = callPackage ../tools/networking/httping {}; httping = callPackage ../tools/networking/httping {};
httplz = callPackage ../tools/networking/httplz { }; httplz = callPackage ../tools/networking/httplz {
inherit (darwin.apple_sdk.frameworks) Security;
};
httpfs2 = callPackage ../tools/filesystems/httpfs { }; httpfs2 = callPackage ../tools/filesystems/httpfs { };