mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
36 lines
1001 B
Nix
36 lines
1001 B
Nix
{ stdenv, lib, fetchFromGitHub, makeWrapper, rustPlatform
|
|
, openssl, pkg-config, darwin, libiconv }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "httplz";
|
|
version = "1.9.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thecoshman";
|
|
repo = "http";
|
|
rev = "v${version}";
|
|
sha256 = "154alxxclz78r29m656c8yahnzq0vd64s4sp19h0ca92dfw4s46y";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper pkg-config ];
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
|
|
libiconv darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
cargoBuildFlags = [ "--bin httplz" ];
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
|
cargoSha256 = "0r33vg9431jv32r03ryxb3rc4mp6h1kc00d3h1knssfvkwsh31yn";
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/httplz \
|
|
--prefix PATH : "${openssl}/bin"
|
|
'';
|
|
|
|
meta = with 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; [ ];
|
|
};
|
|
}
|