mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
50 lines
1.0 KiB
Nix
50 lines
1.0 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 ];
|
|
};
|
|
}
|