File tree Expand file tree Collapse file tree 4 files changed +60
-650
lines changed
development/node-packages Expand file tree Collapse file tree 4 files changed +60
-650
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenvNoCC ,
4+ fetchFromGitHub ,
5+ fetchYarnDeps ,
6+ yarnConfigHook ,
7+ yarnBuildHook ,
8+ yarnInstallHook ,
9+ nodejs ,
10+ jq ,
11+ } :
12+ stdenvNoCC . mkDerivation ( finalAttrs : {
13+ pname = "eas-cli" ;
14+ version = "14.7.1" ;
15+
16+ src = fetchFromGitHub {
17+ owner = "expo" ;
18+ repo = "eas-cli" ;
19+ rev = "v${ finalAttrs . version } " ;
20+ hash = "sha256-h7LohShs4j9Z7Mbe6MSMqfszrEPBcGeTpB+ma3iBXyM=" ;
21+ } ;
22+
23+ packageJson = finalAttrs . src + "/packages/eas-cli/package.json" ;
24+
25+ yarnOfflineCache = fetchYarnDeps {
26+ yarnLock = finalAttrs . src + "/yarn.lock" ; # Point to the root lockfile
27+ hash = "sha256-pnp9MI2S5v4a7KftxYC3Sgc487vooX8+7lmYkmRTWWs=" ;
28+ } ;
29+
30+ nativeBuildInputs = [
31+ yarnConfigHook
32+ yarnBuildHook
33+ yarnInstallHook
34+ nodejs
35+ jq
36+ ] ;
37+
38+ # Add version field to package.json to prevent yarn pack from failing
39+ preInstall = ''
40+ echo "Adding version field to package.json"
41+ jq '. + {version: "${ finalAttrs . version } "}' package.json > package.json.tmp
42+ mv package.json.tmp package.json
43+ '' ;
44+
45+ postInstall = ''
46+ echo "Creating symlink for eas-cli binary"
47+ mkdir -p $out/bin
48+ ln -sf $out/lib/node_modules/eas-cli-root/packages/eas-cli/bin/run $out/bin/eas
49+ chmod +x $out/bin/eas
50+ '' ;
51+
52+ meta = {
53+ changelog = "https://github.com/expo/eas-cli/releases/tag/v${ finalAttrs . version } " ;
54+ description = "EAS command line tool from submodule" ;
55+ homepage = "https://github.com/expo/eas-cli" ;
56+ license = lib . licenses . mit ;
57+ maintainers = with lib . maintainers ; [ zestsystem ] ;
58+ } ;
59+ } )
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ mapAliases {
9797 inherit ( pkgs . elmPackages ) elm-test ;
9898 inherit ( pkgs ) eslint ; # Added 2024-08-28
9999 inherit ( pkgs ) eslint_d ; # Added 2023-05-26
100+ inherit ( pkgs ) eas-cli ; # added 2025-01-08
100101 expo-cli = throw "expo-cli was removed because it was deprecated upstream. Use `npx expo` or eas-cli instead." ; # added 2024-12-02
101102 inherit ( pkgs ) firebase-tools ; # added 2023-08-18
102103 inherit ( pkgs ) fixjson ; # added 2024-06-26
Original file line number Diff line number Diff line change 7676, " dotenv-vault"
7777, " elasticdump"
7878, " @electron-forge/cli"
79- , " eas-cli"
8079, " elm-oracle"
8180, " emoj"
8281, " emojione"
You can’t perform that action at this time.
0 commit comments