mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
085203d84c
Diff: https://github.com/TheWaWaR/simple-http-server/compare/v0.6.6...v0.6.7 Changelog: https://github.com/TheWaWaR/simple-http-server/releases/tag/v0.6.7
40 lines
985 B
Nix
40 lines
985 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "simple-http-server";
|
|
version = "0.6.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TheWaWaR";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Xi5tJIfK4zjckKERhxHuDqeyOB9Dxul/eFLKOtpgR/w=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-wv1hlBTQe1Mm67J2FqrrXSSlZkFPB0TzKc5VUMMfUIQ=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
# Currently no tests are implemented, so we avoid building the package twice
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Simple HTTP server in Rust";
|
|
homepage = "https://github.com/TheWaWaR/simple-http-server";
|
|
changelog = "https://github.com/TheWaWaR/simple-http-server/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda mephistophiles ];
|
|
};
|
|
}
|