Merge pull request #257322 from dotlambda/create-react-app-buildNpmPackage

create-react-app: use buildNpmPackage
This commit is contained in:
Robert Schütz 2023-10-01 22:05:16 +00:00 committed by GitHub
commit 4580404b79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 96 deletions

View file

@ -0,0 +1,33 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "create-react-app";
version = "5.0.1";
src = fetchFromGitHub {
owner = "facebook";
repo = "create-react-app";
rev = "v${version}";
hash = "sha256-nUvJRxBZ98ogSkbw8ciFYtZRQNFD6pLThoEjeDMcGm0=";
};
npmDepsHash = "sha256-diGu53lJi+Fs7pTAQGCXoDtP7YyKZLIN/2Wo+e1Mzc4=";
env.PUPPETEER_SKIP_DOWNLOAD = true;
npmWorkspace = "packages/create-react-app";
dontNpmBuild = true;
meta = {
changelog = "https://github.com/facebook/create-react-app/blob/${src.rev}/CHANGELOG.md";
description = "Create React apps with no build configuration";
homepage = "https://github.com/facebook/create-react-app";
license = lib.licenses.mit;
mainProgram = "create-react-app";
maintainers = with lib.maintainers; [ ma27 ];
};
}

View file

@ -63,6 +63,7 @@ mapAliases {
coffee-script = pkgs.coffeescript; # added 2023-08-18
inherit (pkgs) configurable-http-proxy; # added 2023-08-19
inherit (pkgs) cordova; # added 2023-08-18
inherit (pkgs) create-react-app; # added 2023-09-25
dat = throw "dat was removed because it was broken"; # added 2023-08-21
inherit (pkgs) degit; # added 2023-08-18
inherit (pkgs) dockerfile-language-server-nodejs; # added 2023-08-18

View file

@ -92,7 +92,6 @@
, "conventional-changelog-cli"
, "cpy-cli"
, "create-cycle-app"
, "create-react-app"
, "create-react-native-app"
, "cspell"
, "csslint"

View file

@ -72661,101 +72661,6 @@ in
bypassCache = true;
reconstructLock = true;
};
create-react-app = nodeEnv.buildNodePackage {
name = "create-react-app";
packageName = "create-react-app";
version = "5.0.1";
src = fetchurl {
url = "https://registry.npmjs.org/create-react-app/-/create-react-app-5.0.1.tgz";
sha512 = "UkxTKK8I9HuZZHqkNq/JkKXDgdLeiRGc+bL58Iae2g+7WwFomAj4wppn6JfqlZM2IKYRlZtgLlmVr5oZfdd1xg==";
};
dependencies = [
sources."ansi-styles-4.3.0"
sources."balanced-match-1.0.2"
sources."block-stream-0.0.9"
sources."brace-expansion-1.1.11"
sources."buffer-from-0.1.2"
sources."builtins-1.0.3"
sources."chalk-4.1.2"
sources."color-convert-2.0.1"
sources."color-name-1.1.4"
sources."commander-4.1.1"
sources."concat-map-0.0.1"
sources."core-util-is-1.0.3"
sources."cross-spawn-7.0.3"
sources."debug-2.6.9"
sources."duplexer2-0.0.2"
sources."envinfo-7.10.0"
sources."fs-extra-10.1.0"
sources."fs.realpath-1.0.0"
sources."fstream-1.0.12"
sources."fstream-ignore-1.0.5"
sources."glob-7.2.3"
sources."graceful-fs-4.2.11"
sources."has-flag-4.0.0"
sources."hyperquest-2.1.3"
sources."inflight-1.0.6"
sources."inherits-2.0.4"
sources."isarray-0.0.1"
sources."isexe-2.0.0"
sources."jsonfile-6.1.0"
sources."kleur-3.0.3"
sources."lru-cache-6.0.0"
sources."minimatch-3.1.2"
sources."minimist-1.2.8"
sources."mkdirp-0.5.6"
sources."ms-2.0.0"
sources."once-1.4.0"
sources."path-is-absolute-1.0.1"
sources."path-key-3.1.1"
sources."process-nextick-args-2.0.1"
sources."prompts-2.4.2"
sources."readable-stream-1.1.14"
sources."rimraf-2.7.1"
sources."safe-buffer-5.1.2"
sources."semver-7.5.4"
sources."shebang-command-2.0.0"
sources."shebang-regex-3.0.0"
sources."sisteransi-1.0.5"
sources."string_decoder-0.10.31"
sources."supports-color-7.2.0"
sources."tar-2.2.2"
(sources."tar-pack-3.4.1" // {
dependencies = [
sources."isarray-1.0.0"
sources."readable-stream-2.3.8"
sources."string_decoder-1.1.1"
];
})
(sources."through2-0.6.5" // {
dependencies = [
sources."readable-stream-1.0.34"
];
})
(sources."tmp-0.2.1" // {
dependencies = [
sources."rimraf-3.0.2"
];
})
sources."uid-number-0.0.6"
sources."universalify-2.0.0"
sources."util-deprecate-1.0.2"
sources."validate-npm-package-name-3.0.0"
sources."which-2.0.2"
sources."wrappy-1.0.2"
sources."xtend-4.0.2"
sources."yallist-4.0.0"
];
buildInputs = globalBuildInputs;
meta = {
description = "Create React apps with no build configuration.";
homepage = "https://github.com/facebook/create-react-app#readme";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
create-react-native-app = nodeEnv.buildNodePackage {
name = "create-react-native-app";
packageName = "create-react-native-app";