2023-08-19 03:10:39 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
, xcbuild
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "firebase-tools";
|
2024-04-26 18:23:56 +02:00
|
|
|
version = "13.7.5";
|
2023-08-19 03:10:39 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "firebase";
|
|
|
|
repo = "firebase-tools";
|
|
|
|
rev = "v${version}";
|
2024-04-26 18:23:56 +02:00
|
|
|
hash = "sha256-OPpLqXCxEkKOUB0U2gpvGipvRUcF3fM9yopdwkDMqXk=";
|
2023-08-19 03:10:39 +02:00
|
|
|
};
|
|
|
|
|
2024-04-26 18:23:56 +02:00
|
|
|
npmDepsHash = "sha256-dmySbwBdOJJ65gj1cBlDIS2o2Tnie6tx8cOyt0FoFyw=";
|
2023-08-19 03:10:39 +02:00
|
|
|
|
|
|
|
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; [ ];
|
|
|
|
};
|
|
|
|
}
|