nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 buildNpmPackage, 5 fetchFromGitHub, 6 python3, 7 xcbuild, 8 nix-update-script, 9}: 10 11buildNpmPackage rec { 12 pname = "firebase-tools"; 13 version = "15.1.0"; 14 15 src = fetchFromGitHub { 16 owner = "firebase"; 17 repo = "firebase-tools"; 18 tag = "v${version}"; 19 hash = "sha256-b9dXWCrP70htLbZX0xcoFv8CEgxPjJthhneuuxnO9hQ="; 20 }; 21 22 npmDepsHash = "sha256-v2Dcfx5hcYvi43g8ihNIKNKBS5duiLSaonb/y0QJBy8="; 23 24 # No more package-lock.json in upstream src 25 postPatch = '' 26 cp ./npm-shrinkwrap.json ./package-lock.json 27 ''; 28 29 nativeBuildInputs = [ 30 python3 31 ] 32 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 33 xcbuild 34 ]; 35 36 env.PUPPETEER_SKIP_DOWNLOAD = true; 37 38 passthru.updateScript = nix-update-script { }; 39 40 meta = { 41 changelog = "https://github.com/firebase/firebase-tools/blob/v${version}/CHANGELOG.md"; 42 description = "Manage, and deploy your Firebase project from the command line"; 43 homepage = "https://github.com/firebase/firebase-tools"; 44 license = lib.licenses.mit; 45 mainProgram = "firebase"; 46 maintainers = with lib.maintainers; [ 47 momeemt 48 sarahec 49 ]; 50 }; 51}