472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
49 lines
1 KiB
Nix
49 lines
1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
python3,
|
|
xcbuild,
|
|
}:
|
|
|
|
let
|
|
version = "13.20.2";
|
|
src = fetchFromGitHub {
|
|
owner = "firebase";
|
|
repo = "firebase-tools";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-FIflfCSTXm7J2WectS175vc0ccztWa4tE2E2kcbhwJg=";
|
|
};
|
|
in
|
|
buildNpmPackage {
|
|
pname = "firebase-tools";
|
|
inherit version src;
|
|
|
|
npmDepsHash = "sha256-qEerq6rFBN6HmzDS4xQJorzmzapBV/WhzCwG3rHU458=";
|
|
|
|
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 = with lib.maintainers; [ momeemt ];
|
|
};
|
|
}
|