mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
yalc: migrate from nodePackages
This commit is contained in:
parent
970ac240f3
commit
7614e2c62f
46
pkgs/by-name/ya/yalc/package.nix
Normal file
46
pkgs/by-name/ya/yalc/package.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
fetchYarnDeps,
|
||||
nodejs,
|
||||
yarnBuildHook,
|
||||
yarnConfigHook,
|
||||
yarnInstallHook,
|
||||
unstableGitUpdater,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "yalc";
|
||||
version = "0-unstable-2023-07-04";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wclr";
|
||||
repo = "yalc";
|
||||
# Upstream has no tagged versions
|
||||
rev = "3b834e488837e87df47414fd9917c10f07f0df08";
|
||||
hash = "sha256-v8OhLVuRhnyN2PrslgVVS0r56wGhYYmjoz3ZUZ95xBc=";
|
||||
};
|
||||
|
||||
yarnOfflineCache = fetchYarnDeps {
|
||||
yarnLock = "${finalAttrs.src}/yarn.lock";
|
||||
hash = "sha256-+w3azJEnRx4v3nJ3rhpLWt6CjOFhMMmr1UL5hg2ZR48=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
yarnConfigHook
|
||||
yarnBuildHook
|
||||
yarnInstallHook
|
||||
nodejs
|
||||
];
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
|
||||
meta = {
|
||||
description = "Work with yarn/npm packages locally like a boss";
|
||||
mainProgram = "yalc";
|
||||
homepage = "https://github.com/wclr/yalc";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ pyrox0 ];
|
||||
};
|
||||
})
|
@ -209,6 +209,7 @@ mapAliases {
|
||||
inherit (pkgs) web-ext; # added 2023-08-20
|
||||
inherit (pkgs) wrangler; # added 2024-07-01
|
||||
inherit (pkgs) write-good; # added 2023-08-20
|
||||
inherit (pkgs) yalc; # added 2024-06-29
|
||||
inherit (pkgs) yaml-language-server; # added 2023-09-05
|
||||
inherit (pkgs) yarn; # added 2024-08-13
|
||||
inherit (pkgs) yo; # added 2023-08-20
|
||||
|
@ -236,5 +236,4 @@
|
||||
, "webtorrent-cli"
|
||||
, "wring"
|
||||
, "@yaegassy/coc-nginx"
|
||||
, "yalc"
|
||||
]
|
||||
|
70
pkgs/development/node-packages/node-packages.nix
generated
70
pkgs/development/node-packages/node-packages.nix
generated
@ -38322,15 +38322,6 @@ let
|
||||
sha512 = "KCfK3Vi2F+PH1klYauoQzg81GQ8/GGjQRKYY6tRnpQUPKTs/1gBZSRWtTEd7jGdSn1LZL7gpAmJT+BcS55k2XQ==";
|
||||
};
|
||||
};
|
||||
"npm-packlist-2.2.2" = {
|
||||
name = "npm-packlist";
|
||||
packageName = "npm-packlist";
|
||||
version = "2.2.2";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/npm-packlist/-/npm-packlist-2.2.2.tgz";
|
||||
sha512 = "Jt01acDvJRhJGthnUJVF/w6gumWOZxO7IkpY/lsX9//zqQgnF7OJaxgQXcerd4uQOLu7W5bkb4mChL9mdfm+Zg==";
|
||||
};
|
||||
};
|
||||
"npm-packlist-8.0.2" = {
|
||||
name = "npm-packlist";
|
||||
packageName = "npm-packlist";
|
||||
@ -84792,65 +84783,4 @@ in
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
yalc = nodeEnv.buildNodePackage {
|
||||
name = "yalc";
|
||||
packageName = "yalc";
|
||||
version = "1.0.0-pre.53";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/yalc/-/yalc-1.0.0-pre.53.tgz";
|
||||
sha512 = "tpNqBCpTXplnduzw5XC+FF8zNJ9L/UXmvQyyQj7NKrDNavbJtHvzmZplL5ES/RCnjX7JR7W9wz5GVDXVP3dHUQ==";
|
||||
};
|
||||
dependencies = [
|
||||
sources."ansi-regex-5.0.1"
|
||||
sources."ansi-styles-4.3.0"
|
||||
sources."balanced-match-1.0.2"
|
||||
sources."brace-expansion-1.1.11"
|
||||
sources."chalk-4.1.2"
|
||||
sources."cliui-7.0.4"
|
||||
sources."color-convert-2.0.1"
|
||||
sources."color-name-1.1.4"
|
||||
sources."concat-map-0.0.1"
|
||||
sources."detect-indent-6.1.0"
|
||||
sources."emoji-regex-8.0.0"
|
||||
sources."escalade-3.2.0"
|
||||
sources."fs-extra-8.1.0"
|
||||
sources."fs.realpath-1.0.0"
|
||||
sources."get-caller-file-2.0.5"
|
||||
sources."glob-7.2.3"
|
||||
sources."graceful-fs-4.2.11"
|
||||
sources."has-flag-4.0.0"
|
||||
sources."ignore-5.3.2"
|
||||
sources."ignore-walk-3.0.4"
|
||||
sources."inflight-1.0.6"
|
||||
sources."inherits-2.0.4"
|
||||
sources."ini-2.0.0"
|
||||
sources."is-fullwidth-code-point-3.0.0"
|
||||
sources."jsonfile-4.0.0"
|
||||
sources."minimatch-3.1.2"
|
||||
sources."npm-bundled-1.1.2"
|
||||
sources."npm-normalize-package-bin-1.0.1"
|
||||
sources."npm-packlist-2.2.2"
|
||||
sources."once-1.4.0"
|
||||
sources."path-is-absolute-1.0.1"
|
||||
sources."require-directory-2.1.1"
|
||||
sources."string-width-4.2.3"
|
||||
sources."strip-ansi-6.0.1"
|
||||
sources."supports-color-7.2.0"
|
||||
sources."universalify-0.1.2"
|
||||
sources."wrap-ansi-7.0.0"
|
||||
sources."wrappy-1.0.2"
|
||||
sources."y18n-5.0.8"
|
||||
sources."yargs-16.2.0"
|
||||
sources."yargs-parser-20.2.9"
|
||||
];
|
||||
buildInputs = globalBuildInputs;
|
||||
meta = {
|
||||
description = "Work with npm/yarn packages locally like a boss.";
|
||||
homepage = "https://github.com/whitecolor/yalc";
|
||||
license = "MIT";
|
||||
};
|
||||
production = true;
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user