40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
openssl,
|
|
pkg-config,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "live-server";
|
|
version = "0.10.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lomirus";
|
|
repo = "live-server";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-0IP7F8+Vdl/h4+zcghRqowvzz6zjQYDTjMSZPuGOOj4=";
|
|
};
|
|
|
|
cargoHash = "sha256-MMeeUoj3vYd1lv15N3+qjHbn991IVMhIUCMd0isCNhk=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Local network server with live reload feature for static pages";
|
|
downloadPage = "https://github.com/lomirus/live-server/releases";
|
|
homepage = "https://github.com/lomirus/live-server";
|
|
changelog = "https://github.com/lomirus/live-server/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "live-server";
|
|
maintainers = [ lib.maintainers.philiptaron ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|