depot/third_party/nixpkgs/pkgs/development/tools/firebase-tools/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

44 lines
974 B
Nix

{ lib
, stdenv
, buildNpmPackage
, fetchFromGitHub
, python3
, xcbuild
}:
buildNpmPackage rec {
pname = "firebase-tools";
version = "13.0.2";
src = fetchFromGitHub {
owner = "firebase";
repo = "firebase-tools";
rev = "v${version}";
hash = "sha256-vR4WvnZjxdbebXWdVbM8vQTCo7pgRMcu9A2KygHZCMk=";
};
npmDepsHash = "sha256-h99Zj+yJJvLKc/B6AbKKQTOdrZCIT3BVlkxrOtOyNA4=";
postPatch = ''
ln -s npm-shrinkwrap.json package-lock.json
'';
nativeBuildInputs = [
python3
] ++ lib.optionals stdenv.isDarwin [
xcbuild
];
env = {
PUPPETEER_SKIP_DOWNLOAD = true;
};
meta = {
changelog = "https://github.com/firebase/firebase-tools/blob/${src.rev}/CHANGELOG.md";
description = "Manage, and deploy your Firebase project from the command line";
homepage = "https://github.com/firebase/firebase-tools";
license = lib.licenses.mit;
mainProgram = "firebase";
maintainers = with lib.maintainers; [ ];
};
}