mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-09 15:05:30 +00:00
package: add prettier-plugin-svelte
This commit is contained in:
parent
6b334ad28f
commit
ea8c9a3503
2 changed files with 35 additions and 0 deletions
19
flake/pkgs/by-name/prettier-plugin-svelte/package.nix
Normal file
19
flake/pkgs/by-name/prettier-plugin-svelte/package.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
buildNpmPackage,
|
||||
fetchFromGitHub,
|
||||
pins,
|
||||
}: let
|
||||
pin = pins.prettier-plugin-svelte;
|
||||
in
|
||||
buildNpmPackage (finalAttrs: {
|
||||
pname = "prettier-plugin-svelte";
|
||||
version = pin.version or pin.revision;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit (pin.repository) owner repo;
|
||||
rev = finalAttrs.version;
|
||||
sha256 = pin.hash;
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-D+gDdKiIG38jV+M/BqTKf0yYj1KXpbIodtQFdzocpn8=";
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue