mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
prettier-d-slim: use buildNpmPackage
This commit is contained in:
parent
a29cf4aece
commit
568ee7bc40
28
pkgs/by-name/pr/prettier-d-slim/package.nix
Normal file
28
pkgs/by-name/pr/prettier-d-slim/package.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib
|
||||
, buildNpmPackage
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "prettier-d-slim";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mikew";
|
||||
repo = "prettier_d_slim";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-M+qlFKtIro3geVsVaYu6dIfOrJIlUQY98LSBikKNV/I=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-zkyB3PYpfeEw5U70KewxIWd4eImIbTgy+e88264sotc=";
|
||||
|
||||
dontNpmBuild = true;
|
||||
|
||||
meta = {
|
||||
description = "Makes prettier fast";
|
||||
homepage = "https://github.com/mikew/prettier_d_slim";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "prettier_d_slim";
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
};
|
||||
}
|
|
@ -98,6 +98,7 @@ mapAliases {
|
|||
inherit (pkgs) npm-check-updates; # added 2023-08-22
|
||||
ocaml-language-server = throw "ocaml-language-server was removed because it was abandoned upstream"; # added 2023-09-04
|
||||
parcel-bundler = parcel; # added 2023-09-04
|
||||
prettier_d_slim = pkgs.prettier-d-slim; # added 2023-09-14
|
||||
inherit (pkgs) quicktype; # added 2023-09-09
|
||||
inherit (pkgs) react-static; # added 2023-08-21
|
||||
readability-cli = pkgs.readability-cli; # Added 2023-06-12
|
||||
|
|
|
@ -202,7 +202,6 @@
|
|||
, "postcss-cli"
|
||||
, "prebuild-install"
|
||||
, "prettier"
|
||||
, "prettier_d_slim"
|
||||
, "prettier-plugin-toml"
|
||||
, "prisma"
|
||||
, "@prisma/language-server"
|
||||
|
|
33
pkgs/development/node-packages/node-packages.nix
generated
33
pkgs/development/node-packages/node-packages.nix
generated
|
@ -101421,39 +101421,6 @@ in
|
|||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
prettier_d_slim = nodeEnv.buildNodePackage {
|
||||
name = "prettier_d_slim";
|
||||
packageName = "prettier_d_slim";
|
||||
version = "1.2.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/prettier_d_slim/-/prettier_d_slim-1.2.0.tgz";
|
||||
sha512 = "Wq/Qida9MweJX7dKjlNeJ9Ppfeu4YPWY2947x1xev2RXjimvv2QOBRQJhGAir/QZ+WJnrU82e9O67Uqu8JgbZw==";
|
||||
};
|
||||
dependencies = [
|
||||
sources."camelize-1.0.1"
|
||||
sources."core_d-3.2.0"
|
||||
sources."function-bind-1.1.1"
|
||||
sources."has-1.0.3"
|
||||
sources."has-flag-4.0.0"
|
||||
sources."is-core-module-2.13.0"
|
||||
sources."minimist-1.2.8"
|
||||
sources."nanolru-1.0.0"
|
||||
sources."path-parse-1.0.7"
|
||||
sources."prettier-2.8.8"
|
||||
sources."resolve-1.22.4"
|
||||
sources."supports-color-8.1.1"
|
||||
sources."supports-preserve-symlinks-flag-1.0.0"
|
||||
];
|
||||
buildInputs = globalBuildInputs;
|
||||
meta = {
|
||||
description = "Makes prettier fast";
|
||||
homepage = "https://github.com/mikew/prettier_d_slim";
|
||||
license = "MIT";
|
||||
};
|
||||
production = true;
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
prettier-plugin-toml = nodeEnv.buildNodePackage {
|
||||
name = "prettier-plugin-toml";
|
||||
packageName = "prettier-plugin-toml";
|
||||
|
|
Loading…
Reference in a new issue