depot/third_party/nixpkgs/pkgs/by-name/es/esbuild-config/package.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

31 lines
705 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "esbuild-config";
version = "1.0.1";
src = fetchFromGitHub {
owner = "bpierre";
repo = "esbuild-config";
rev = "v${version}";
hash = "sha256-u3LgecKfgPSN5xMyqBjeAn4/XswM3iEGbZ+JGrVF1Co=";
};
cargoHash = "sha256-Z7uYOjMNxsEmsEXDOIr1zIq4nCgHvHIqpRnRH037b8g=";
# Cargo.lock is outdated
postConfigure = ''
cargo metadata --offline
'';
meta = with lib; {
description = "Config files for esbuild";
homepage = "https://github.com/bpierre/esbuild-config";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "esbuild-config";
};
}