1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-09 18:53:51 +00:00
ultima/modules/home/programs/cli/helix/prettier.nix
2024-11-21 18:24:15 +09:00

63 lines
2 KiB
Nix

{ fetchurl, nodeEnv, globalBuildInputs ? [ ], ... }:
let
sources = {
"@taplo/core-0.1.1" = {
name = "_at_taplo_slash_core";
packageName = "@taplo/core";
version = "0.1.1";
src = fetchurl {
url = "https://registry.npmjs.org/@taplo/core/-/core-0.1.1.tgz";
sha512 =
"BG/zLGf5wiNXGEVPvUAAX/4ilB3PwDUY2o0MV0y47mZbDZ9ad9UK/cIQsILat3bqbPJsALVbU6k3cskNZ3vAQg==";
};
};
"@taplo/lib-0.4.0-alpha.2" = {
name = "_at_taplo_slash_lib";
packageName = "@taplo/lib";
version = "0.4.0-alpha.2";
src = fetchurl {
url = "https://registry.npmjs.org/@taplo/lib/-/lib-0.4.0-alpha.2.tgz";
sha512 =
"DV/Re3DPVY+BhBtLZ3dmP4mP6YMLSsgq9qGLXwOV38lvNF/fBlgvQswzlXmzCEefL/3q2eMoefZpOI/+GLuCNA==";
};
};
"prettier-3.3.3" = {
name = "prettier";
packageName = "prettier";
version = "3.3.3";
src = fetchurl {
url = "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz";
sha512 =
"i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==";
};
};
};
in {
prettier-plugin-sh = nodeEnv.buildNodePackage {
name = "prettier-plugin-sh";
packageName = "prettier-plugin-sh";
version = "0.14.0";
src = fetchurl {
url =
"https://registry.npmjs.org/prettier-plugin-toml/-/prettier-plugin-toml-2.0.1.tgz";
sha512 =
"99z1YOkViECHtXQjGIigd3talI/ybUI1zB3yniAwUrlWBXupNXThB1hM6bwSMUEj2/+tomTlMtT98F5t4s8IWA==";
};
dependencies = [
sources."@taplo/core-0.1.1"
sources."@taplo/lib-0.4.0-alpha.2"
sources."prettier-3.3.3"
];
buildInputs = globalBuildInputs;
meta = {
description = "An opinionated `toml` formatter plugin for Prettier";
homepage =
"https://github.com/un-ts/prettier/tree/master/packages/prettier";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
}