From 728f977a2f9ba2976b72eefa1c2ef20f14107f90 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 10 Sep 2023 20:11:05 -0400 Subject: [PATCH] esbuild-config: init at 1.0.1 https://github.com/bpierre/esbuild-config --- pkgs/by-name/es/esbuild-config/package.nix | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pkgs/by-name/es/esbuild-config/package.nix diff --git a/pkgs/by-name/es/esbuild-config/package.nix b/pkgs/by-name/es/esbuild-config/package.nix new file mode 100644 index 000000000000..d68db5c89a47 --- /dev/null +++ b/pkgs/by-name/es/esbuild-config/package.nix @@ -0,0 +1,31 @@ +{ 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"; + }; +}