diff options
author | Maxim Zhukov <mussitantesmortem@gmail.com> | 2021-04-25 13:53:37 +0300 |
---|---|---|
committer | Maxim Zhukov <mussitantesmortem@gmail.com> | 2021-04-25 16:58:29 +0300 |
commit | 303e476a6e28b371d47e0884baea59bff2f26d45 (patch) | |
tree | c7e8c7abf9d273ea0f390c8db0d90c2f916f853b /pkgs/servers/simple-http-server | |
parent | 4a67076273c8c566f90e3f0caadce941106314d9 (diff) | |
download | nixpkgs-303e476a6e28b371d47e0884baea59bff2f26d45.tar nixpkgs-303e476a6e28b371d47e0884baea59bff2f26d45.tar.gz nixpkgs-303e476a6e28b371d47e0884baea59bff2f26d45.tar.bz2 nixpkgs-303e476a6e28b371d47e0884baea59bff2f26d45.tar.lz nixpkgs-303e476a6e28b371d47e0884baea59bff2f26d45.tar.xz nixpkgs-303e476a6e28b371d47e0884baea59bff2f26d45.tar.zst nixpkgs-303e476a6e28b371d47e0884baea59bff2f26d45.zip |
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>
Diffstat (limited to 'pkgs/servers/simple-http-server')
-rw-r--r-- | pkgs/servers/simple-http-server/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/servers/simple-http-server/default.nix b/pkgs/servers/simple-http-server/default.nix new file mode 100644 index 00000000000..d93b4664019 --- /dev/null +++ b/pkgs/servers/simple-http-server/default.nix @@ -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 ]; + }; +} |