~aasg/nixexprs

5f4f6269eb3780b4bf17dad8518ebd49e572f884 — Aluísio Augusto Silva Gonçalves 19 days ago 458e31e
esbuild: init at 0.7.8
3 files changed, 36 insertions(+), 0 deletions(-)

M pkgs/default.nix
A pkgs/development/tools/esbuild/default.nix
M pkgs/overlay.nix
M pkgs/default.nix => pkgs/default.nix +2 -0
@@ 15,6 15,8 @@ let

    dyndnsc = callPackageWithMerged "python3Packages" ./tools/networking/dyndnsc { };

    esbuild = callPackage ./development/tools/esbuild { };

    guile-commonmark = callPackage ./development/guile-modules/guile-commonmark { };

    guile-json = callPackage ./development/guile-modules/guile-json { };

A pkgs/development/tools/esbuild/default.nix => pkgs/development/tools/esbuild/default.nix +32 -0
@@ 0,0 1,32 @@
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "esbuild";
  version = "0.7.8";

  src = fetchFromGitHub {
    owner = "evanw";
    repo = pname;
    rev = "v${version}";
    sha256 = "1xxdwn20wlv5d2khv56jihbdcy68s6k258d4j2jqq3nrir72sf46";
  };

  # For NixOS 20.03.
  modSha256 = "1p80k4s18br3idiy422bpa8hm53kjjdhd55v6yx908wqk4hpa5yh";
  # For NixOS 20.09 and up.
  vendorSha256 = "0325z7b58awzdzfgnzib2v36xah7rdnihamcd2spna1f1slingbn";

  subPackages = [ "./cmd/esbuild" ];

  checkPhase = ''
    go test ./internal/...
  '';

  meta = with lib; {
    description = "An extremely fast JavaScript bundler and minifier";
    homepage = "https://github.com/evanw/esbuild";
    license = licenses.mit;
    maintainers = with maintainers; [ AluisioASG ];
    platforms = platforms.all;
  };
}

M pkgs/overlay.nix => pkgs/overlay.nix +2 -0
@@ 8,6 8,8 @@ self: super:

  dyndnsc = super.callPackage ./tools/networking/dyndnsc { };

  esbuild = super.callPackage ./development/tools/esbuild { };

  guile-commonmark = super.callPackage ./development/guile-modules/guile-commonmark { };

  guile-json = super.callPackage ./development/guile-modules/guile-json { };