eb11feaa0b
Changes the default fetcher in the Rust Platform to be the newer `fetchCargoTarball`, and changes every application using the current default to instead opt out. This commit does not change any hashes or cause any rebuilds. Once integrated, we will start deleting the opt-outs and recomputing hashes. See #79975 for details.
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub, makeWrapper, rustPlatform
|
|
, openssl, pkgconfig, darwin, libiconv }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "httplz";
|
|
version = "1.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thecoshman";
|
|
repo = "http";
|
|
rev = "v${version}";
|
|
sha256 = "0i41hqig8v6w1qb6498239iix1rss0lznm5lcl9m3i439c2zv7pw";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [
|
|
openssl pkgconfig
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
libiconv darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
cargoBuildFlags = [ "--bin httplz" ];
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
|
# Delete this on next update; see #79975 for details
|
|
legacyCargoFetcher = true;
|
|
|
|
cargoSha256 = "1ajxfvj1pv6yq84zgrh7vjzghpb2y8qd5r09gzwdvww5rbj920fq";
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/httplz \
|
|
--prefix PATH : "${openssl}/bin"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|