~aasg/nixexprs

ref: 5550f58e685f24c47d231549a47eaaf808c682b7 nixexprs/pkgs/development/tools/esbuild/default.nix -rw-r--r-- 795 bytes
5550f58e — Aluísio Augusto Silva Gonçalves Deprecate packages available in Nixpkgs 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, buildGoModule, fetchFromGitHub }:

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

  src = fetchFromGitHub {
    owner = "evanw";
    repo = pname;
    rev = "v${version}";
    sha256 = "1y5hqymv2r8r29f8vh8kgncj3wlkg4fzi0zlc7mgyss872ajkc7i";
  };
  vendorSha256 = "0325z7b58awzdzfgnzib2v36xah7rdnihamcd2spna1f1slingbn";

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

  doCheck = true;
  checkPhase = ''
    runHook preCheck

    go test ./internal/...

    runHook postCheck
  '';

  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;
    hydraPlatforms = platforms.none;
  };
}