Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
fetchYarnDeps,
|
|
yarnConfigHook,
|
|
yarnBuildHook,
|
|
nodejs,
|
|
jq,
|
|
}:
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "eas-cli";
|
|
version = "16.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "expo";
|
|
repo = "eas-cli";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-cHayMBhqiLY//t/ljjwJm4qMuVn531z7x2cqJE4z6hQ=";
|
|
};
|
|
|
|
yarnOfflineCache = fetchYarnDeps {
|
|
yarnLock = finalAttrs.src + "/yarn.lock"; # Point to the root lockfile
|
|
hash = "sha256-qDUwAdShpKjIUyYvtA6/hgGdO1z1xLqdsJkL3oqkMSw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
yarnConfigHook
|
|
yarnBuildHook
|
|
nodejs
|
|
jq
|
|
];
|
|
|
|
# yarnInstallHook strips out build outputs within packages/eas-cli resulting in most commands missing from eas-cli.
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/lib/node_modules/eas-cli-root
|
|
cp -r . $out/lib/node_modules/eas-cli-root
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
# postFixup is used to override the symlink created in the fixupPhase
|
|
postFixup = ''
|
|
mkdir -p $out/bin
|
|
ln -sf $out/lib/node_modules/eas-cli-root/packages/eas-cli/bin/run $out/bin/eas
|
|
'';
|
|
|
|
meta = {
|
|
changelog = "https://github.com/expo/eas-cli/releases/tag/v${finalAttrs.version}";
|
|
description = "EAS command line tool from submodule";
|
|
homepage = "https://github.com/expo/eas-cli";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ zestsystem ];
|
|
};
|
|
})
|