zipline: refactor environment variables (#377101)
[NixPkgs.git] / pkgs / by-name / li / live-server / package.nix
blob68b3bc24530c7dedb117eb05e2885ba92c21dda1
2   lib,
3   stdenv,
4   rustPlatform,
5   fetchFromGitHub,
6   darwin,
7   openssl,
8   pkg-config,
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "live-server";
13   version = "0.9.1";
15   src = fetchFromGitHub {
16     owner = "lomirus";
17     repo = "live-server";
18     rev = "v${version}";
19     hash = "sha256-9NULpK48svCMTx1OeivS+LHVGUGFObg4pBr/V0yIuwM=";
20   };
22   cargoHash = "sha256-QB03sXAGNHu+Yc/UYcmOqYBS/LNbKSoT9PZa11prNtA=";
24   nativeBuildInputs = [ pkg-config ];
26   buildInputs =
27     [ openssl ]
28     ++ lib.optionals stdenv.hostPlatform.isDarwin (
29       with darwin.apple_sdk.frameworks;
30       [
31         CoreServices
32         SystemConfiguration
33       ]
34     );
36   meta = with lib; {
37     description = "Local network server with live reload feature for static pages";
38     downloadPage = "https://github.com/lomirus/live-server/releases";
39     homepage = "https://github.com/lomirus/live-server";
40     license = licenses.mit;
41     mainProgram = "live-server";
42     maintainers = [ maintainers.philiptaron ];
43     platforms = platforms.unix;
44   };