Merge pull request #250462 from dotlambda/yo-buildNpmPackage

yo: use buildNpmPackage
This commit is contained in:
Robert Schütz 2023-08-21 18:27:02 +00:00 committed by GitHub
commit a4b7b58a9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

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