nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildNpmPackage,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8buildNpmPackage (finalAttrs: {
9 pname = "elm-live";
10 version = "4.0.1";
11
12 src = fetchFromGitHub {
13 owner = "wking-io";
14 repo = "elm-live";
15 tag = finalAttrs.version;
16 hash = "sha256-pLBSFfe+46uMDC96Pz7Tp14fgZo4elZnhvIdeJGkZ1s=";
17 };
18
19 npmDepsHash = "sha256-OFOlmlE9lyrJ0uyzsqomrHNxKb4jNKtKvxhqK0Dh07k=";
20
21 dontNpmBuild = true;
22
23 postInstall = ''
24 rm -rf $out/lib/node_modules/elm-live/node_modules/.bin
25 '';
26
27 passthru.updateScript = nix-update-script { };
28
29 meta = {
30 changelog = "https://github.com/wking-io/elm-live/releases/tag/${finalAttrs.version}";
31 description = "Flexible dev server for Elm with live-reload";
32 homepage = "https://www.elm-live.com";
33 license = lib.licenses.mit;
34 maintainers = with lib.maintainers; [ pyrox0 ];
35 mainProgram = "elm-live";
36 };
37})