83627f9931
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
44 lines
975 B
Nix
44 lines
975 B
Nix
{ lib
|
|
, stdenv
|
|
, buildNpmPackage
|
|
, fetchFromGitHub
|
|
, python3
|
|
, xcbuild
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "firebase-tools";
|
|
version = "13.11.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "firebase";
|
|
repo = "firebase-tools";
|
|
rev = "v${version}";
|
|
hash = "sha256-JgmiWcWGGJOv9P0x/WSlkVhmcNSIX12jKZuZBSHxqkg=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-dDIw8R2126HLqhU+8dq7zroJ7YHHiV6s8yTSrmtgURM=";
|
|
|
|
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; [ ];
|
|
};
|
|
}
|