yo: use buildNpmPackage

This commit is contained in:
Robert Schütz 2023-08-20 19:45:40 -07:00
parent b0bf0a1c0b
commit 30f1543fe7
5 changed files with 31 additions and 1037 deletions

View File

@ -74,5 +74,6 @@ mapAliases {
typescript = pkgs.typescript; # Added 2023-06-21
vscode-langservers-extracted = pkgs.vscode-langservers-extracted; # Added 2023-05-27
vue-cli = self."@vue/cli"; # added 2023-08-18
inherit (pkgs) yo; # added 2023-08-20
zx = pkgs.zx; # added 2023-08-01
}

View File

@ -373,6 +373,5 @@
, "yaml-language-server"
, "yalc"
, "yarn"
, "yo"
, "@zwave-js/server"
]

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,28 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "yo";
version = "4.3.1";
src = fetchFromGitHub {
owner = "yeoman";
repo = "yo";
rev = "v${version}";
hash = "sha256-vnvcg3hvAYcqS11enBEHtpTwTOy4puY5i/6zPOHCywo=";
};
npmDepsHash = "sha256-QkEPaepvI6NfEEmqnVA4Xx/tByn6goyGWVpoJNMigd8=";
dontNpmBuild = true;
meta = {
description = "CLI tool for running Yeoman generators";
homepage = "https://github.com/yeoman/yo";
license = lib.licenses.bsd2;
mainProgram = "yo";
maintainers = with lib.maintainers; [ ];
};
}

View File

@ -20415,6 +20415,8 @@ with pkgs;
python = python3;
};
yo = callPackage ../development/tools/yo { };
yodl = callPackage ../development/tools/misc/yodl { };
yq = python3.pkgs.toPythonApplication python3.pkgs.yq;