at 22.05-pre 712 B view raw
1{ lib 2, stdenv 3, fetchCrate 4, rustPlatform 5, openssl 6, pkg-config 7, CoreServices 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "devserver"; 12 version = "0.4.0"; 13 14 src = fetchCrate { 15 inherit pname version; 16 sha256 = "sha256-UcrLzsALwl0zqNRMS1kTTXsR6wN8XDd5Iq+yrudh6M4="; 17 }; 18 19 nativeBuildInputs = [ pkg-config ]; 20 21 buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin CoreServices; 22 23 cargoSha256 = "sha256-XlrQ6CvjeWnzvfaeNbe8FtMXMVSQNLxDVIEjyHm57Js="; 24 25 meta = with lib; { 26 description = "An extremely tiny tool to serve a static folder locally"; 27 homepage = "https://github.com/kettle11/devserver"; 28 license = licenses.zlib; 29 maintainers = with maintainers; [ nickhu ]; 30 }; 31}