7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
44 lines
966 B
Nix
44 lines
966 B
Nix
{ lib
|
|
, stdenv
|
|
, buildNpmPackage
|
|
, fetchFromGitHub
|
|
, python3
|
|
, xcbuild
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "firebase-tools";
|
|
version = "13.17.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "firebase";
|
|
repo = "firebase-tools";
|
|
rev = "v${version}";
|
|
hash = "sha256-Tf01j8t4zCrUDWB8+5DkJ+74OBJLD23FlI+4QlWCjLw=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-Ghi4H7BPTQhpnI0UZWBVC9OX4F6NFlbXrtSxA5U4omg=";
|
|
|
|
postPatch = ''
|
|
ln -s npm-shrinkwrap.json package-lock.json
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
python3
|
|
] ++ lib.optionals stdenv.hostPlatform.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 = [ ];
|
|
};
|
|
}
|