Merge pull request #250056 from dotlambda/degit-buildNpmPackage

degit: use buildNpmPackage
This commit is contained in:
Robert Schütz 2023-09-03 21:22:27 +00:00 committed by GitHub
commit c021404209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 19 deletions

View File

@ -0,0 +1,26 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "degit";
version = "2.8.4";
src = fetchFromGitHub {
owner = "Rich-Harris";
repo = "degit";
rev = "v${version}";
hash = "sha256-Vw/gtmKywi5faSCs7Wek80nmnqcPHXlQarD5qMwlsQE=";
};
npmDepsHash = "sha256-42cM31C2c1Gr7HWOowMUTEUEyL0mGnyl5fyQECcz1Sw=";
meta = {
changelog = "https://github.com/Rich-Harris/degit/blob/${src.rev}/CHANGELOG.md";
description = "Make copies of git repositories";
homepage = "https://github.com/Rich-Harris/degit";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kidonng ];
};
}

View File

@ -60,6 +60,7 @@ mapAliases {
inherit (pkgs) configurable-http-proxy; # added 2023-08-19
inherit (pkgs) cordova; # added 2023-08-18
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
eask = pkgs.eask; # added 2023-08-17
inherit (pkgs.elmPackages) elm-test;

View File

@ -100,7 +100,6 @@
, "create-react-native-app"
, "cspell"
, "csslint"
, "degit"
, "dhcp"
, "diagnostic-languageserver"
, "diff2html-cli"

View File

@ -81161,24 +81161,6 @@ in
bypassCache = true;
reconstructLock = true;
};
degit = nodeEnv.buildNodePackage {
name = "degit";
packageName = "degit";
version = "2.8.4";
src = fetchurl {
url = "https://registry.npmjs.org/degit/-/degit-2.8.4.tgz";
sha512 = "vqYuzmSA5I50J882jd+AbAhQtgK6bdKUJIex1JNfEUPENCgYsxugzKVZlFyMwV4i06MmnV47/Iqi5Io86zf3Ng==";
};
buildInputs = globalBuildInputs;
meta = {
description = "Straightforward project scaffolding";
homepage = "https://github.com/Rich-Harris/degit#readme";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
dhcp = nodeEnv.buildNodePackage {
name = "dhcp";
packageName = "dhcp";

View File

@ -2160,6 +2160,8 @@ with pkgs;
darcs-to-git = callPackage ../applications/version-management/darcs-to-git { };
degit = callPackage ../applications/version-management/degit { };
delta = darwin.apple_sdk_11_0.callPackage ../applications/version-management/delta { };
diff-so-fancy = callPackage ../applications/version-management/diff-so-fancy { };