forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netlify-cli: 12.2.4 -> 17.37.1, migrate to buildNpmPackage (NixOS#350891
- Loading branch information
Showing
8 changed files
with
40 additions
and
12,693 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,40 @@ | ||
{ callPackage, fetchFromGitHub, lib, pkgs }: | ||
let | ||
nodePackages = import ./composition.nix { inherit pkgs; }; | ||
sourceInfo = (lib.importJSON ./netlify-cli.json); | ||
in | ||
nodePackages.package.override { | ||
preRebuild = '' | ||
export ESBUILD_BINARY_PATH="${pkgs.esbuild_netlify}/bin/esbuild" | ||
''; | ||
src = fetchFromGitHub { | ||
inherit (sourceInfo) owner repo rev hash; | ||
}; | ||
bypassCache = true; | ||
reconstructLock = true; | ||
passthru.tests.test = callPackage ./test.nix { }; | ||
meta.maintainers = with lib.maintainers; [ roberth ]; | ||
meta.mainProgram = "netlify"; | ||
} | ||
{ | ||
callPackage, | ||
vips, | ||
pkg-config, | ||
lib, | ||
buildNpmPackage, | ||
fetchFromGitHub, | ||
nix-update-script, | ||
}: | ||
|
||
buildNpmPackage rec { | ||
pname = "netlify-cli"; | ||
version = "17.37.1"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "netlify"; | ||
repo = "cli"; | ||
rev = "refs/tags/v${version}"; | ||
hash = "sha256-34WvnbvLv2bB8CTlFKf351eQ5enYRhDqHoHRvJTBq4M="; | ||
}; | ||
|
||
npmDepsHash = "sha256-zbr8TVCIKa/x5vzc3bR++qDcu0AuAgq1rfE69rytCWw="; | ||
|
||
buildInputs = [ vips ]; | ||
nativeBuildInputs = [ pkg-config ]; | ||
|
||
passthru = { | ||
tests.test = callPackage ./test.nix { }; | ||
updateScript = nix-update-script { }; | ||
}; | ||
|
||
meta = { | ||
description = "Netlify command line tool"; | ||
homepage = "https://github.com/netlify/cli"; | ||
changelog = "https://github.com/netlify/cli/blob/v${version}/CHANGELOG.md"; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ roberth ]; | ||
mainProgram = "netlify"; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.