2021-10-12 21:11:41 +00:00
|
|
|
{ lib
|
2021-11-18 21:30:41 +00:00
|
|
|
, stdenv
|
2021-10-12 21:11:41 +00:00
|
|
|
, fetchCrate
|
|
|
|
, rustPlatform
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
2021-11-18 21:30:41 +00:00
|
|
|
, CoreServices
|
2021-10-12 21:11:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "devserver";
|
|
|
|
version = "0.4.0";
|
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "sha256-UcrLzsALwl0zqNRMS1kTTXsR6wN8XDd5Iq+yrudh6M4=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2021-11-18 21:30:41 +00:00
|
|
|
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin CoreServices;
|
2021-10-12 21:11:41 +00:00
|
|
|
|
|
|
|
cargoSha256 = "sha256-XlrQ6CvjeWnzvfaeNbe8FtMXMVSQNLxDVIEjyHm57Js=";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An extremely tiny tool to serve a static folder locally";
|
|
|
|
homepage = "https://github.com/kettle11/devserver";
|
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ nickhu ];
|
|
|
|
};
|
|
|
|
}
|