mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-01 16:34:15 +03:00
simple-http-server: init at 0.6.1
Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch> Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.com>
This commit is contained in:
parent
4a67076273
commit
303e476a6e
29
pkgs/servers/simple-http-server/default.nix
Normal file
29
pkgs/servers/simple-http-server/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "simple-http-server";
|
||||
version = "0.6.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "TheWaWaR";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "01a129i1ph3m8k6zkdcqnnkqbhlqpk7qvvdsz2i2kas54csbgsww";
|
||||
};
|
||||
|
||||
cargoSha256 = "050avk6wff8v1dlsfvxwvldmmgfakdxmhglv2bhvc2f3q8cf1d5d";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
# 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";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ mephistophiles ];
|
||||
};
|
||||
}
|
@ -31003,6 +31003,8 @@ in
|
||||
|
||||
simplehttp2server = callPackage ../servers/simplehttp2server { };
|
||||
|
||||
simple-http-server = callPackage ../servers/simple-http-server { };
|
||||
|
||||
diceware = with python3Packages; toPythonApplication diceware;
|
||||
|
||||
xml2rfc = with python3Packages; toPythonApplication xml2rfc;
|
||||
|
Loading…
Reference in New Issue
Block a user