mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
2ff4e9ea84
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
18 lines
551 B
Nix
18 lines
551 B
Nix
{ 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 sha256;
|
|
};
|
|
bypassCache = true;
|
|
reconstructLock = true;
|
|
passthru.tests.test = callPackage ./test.nix { };
|
|
meta.maintainers = with lib.maintainers; [ roberth ];
|
|
}
|