1{
2 lib,
3 stdenvNoCC,
4 fetchFromGitHub,
5 fetchYarnDeps,
6 yarnConfigHook,
7 yarnInstallHook,
8 nodejs,
9}:
10
11stdenvNoCC.mkDerivation (finalAttrs: {
12 pname = "ember-cli";
13 version = "5.3.0";
14
15 src = fetchFromGitHub {
16 owner = "ember-cli";
17 repo = "ember-cli";
18 tag = "v${finalAttrs.version}";
19 hash = "sha256-xkMsPE+iweIV14m4kE4ytEp4uHMJW6gr+n9oJblr4VQ=";
20 };
21
22 offlineCache = fetchYarnDeps {
23 yarnLock = finalAttrs.src + "/yarn.lock";
24 hash = "sha256-QgT2JFvMupJo+pJc13n2lmHMZkROJRJWoozCho3E6+c=";
25 };
26
27 strictDeps = true;
28
29 nativeBuildInputs = [
30 yarnConfigHook
31 yarnInstallHook
32 nodejs
33 ];
34
35 meta = with lib; {
36 homepage = "https://github.com/ember-cli/ember-cli";
37 description = "Ember.js command line utility";
38 license = licenses.mit;
39 maintainers = with maintainers; [ jfvillablanca ];
40 platforms = platforms.all;
41 mainProgram = "ember";
42 };
43})