mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
32 lines
712 B
Nix
32 lines
712 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchCrate
|
|
, rustPlatform
|
|
, openssl
|
|
, pkg-config
|
|
, CoreServices
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "devserver";
|
|
version = "0.4.0";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
sha256 = "sha256-UcrLzsALwl0zqNRMS1kTTXsR6wN8XDd5Iq+yrudh6M4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin CoreServices;
|
|
|
|
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 ];
|
|
};
|
|
}
|