degit: use buildNpmPackage

This commit is contained in:
Robert Schütz 2023-08-18 16:23:31 -07:00
parent 3219721f12
commit fbe9753456
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

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

View file

@ -81217,24 +81217,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

@ -2158,6 +2158,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 { };