587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
44 lines
974 B
Nix
44 lines
974 B
Nix
{ lib
|
|
, stdenv
|
|
, buildNpmPackage
|
|
, fetchFromGitHub
|
|
, python3
|
|
, xcbuild
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "firebase-tools";
|
|
version = "13.7.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "firebase";
|
|
repo = "firebase-tools";
|
|
rev = "v${version}";
|
|
hash = "sha256-KzckVI6eSojnUh+jV1xtKZrwmYfngKk8Ch0cGdTLxMA=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-X7OScxmDsWnvYTP/GOKZRuq3Bu0ReDDqlIFhEWCeQmY=";
|
|
|
|
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; [ ];
|
|
};
|
|
}
|