From b7442e877062473e5a7e6ed3076b2df28763c7c2 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 6 Jul 2024 19:51:21 +0300 Subject: [PATCH] prettierd: move to by-name; nixfmt-rfc-style --- .../pr}/prettierd/package.json | 0 .../pr/prettierd/package.nix} | 25 +++++++++++-------- pkgs/top-level/all-packages.nix | 2 -- 3 files changed, 14 insertions(+), 13 deletions(-) rename pkgs/{development/tools => by-name/pr}/prettierd/package.json (100%) rename pkgs/{development/tools/prettierd/default.nix => by-name/pr/prettierd/package.nix} (79%) diff --git a/pkgs/development/tools/prettierd/package.json b/pkgs/by-name/pr/prettierd/package.json similarity index 100% rename from pkgs/development/tools/prettierd/package.json rename to pkgs/by-name/pr/prettierd/package.json diff --git a/pkgs/development/tools/prettierd/default.nix b/pkgs/by-name/pr/prettierd/package.nix similarity index 79% rename from pkgs/development/tools/prettierd/default.nix rename to pkgs/by-name/pr/prettierd/package.nix index bf7ab9e692036..1025a90fbd377 100644 --- a/pkgs/development/tools/prettierd/default.nix +++ b/pkgs/by-name/pr/prettierd/package.nix @@ -1,10 +1,10 @@ -{ lib -, mkYarnPackage -, fetchFromGitHub -, makeWrapper -, nodejs -, fetchYarnDeps -, +{ + lib, + mkYarnPackage, + fetchFromGitHub, + makeWrapper, + nodejs, + fetchYarnDeps, }: mkYarnPackage rec { pname = "prettierd"; @@ -40,13 +40,16 @@ mkYarnPackage rec { doDist = false; - meta = with lib; { + meta = { mainProgram = "prettierd"; description = "Prettier, as a daemon, for improved formatting speed"; homepage = "https://github.com/fsouza/prettierd"; - license = licenses.isc; + license = lib.licenses.isc; changelog = "https://github.com/fsouza/prettierd/blob/${src.rev}/CHANGELOG.md"; - platforms = with platforms; linux ++ darwin; - maintainers = with maintainers; [ NotAShelf n3oney ]; + platforms = with lib.platforms; linux ++ darwin; + maintainers = with lib.maintainers; [ + NotAShelf + n3oney + ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 13e3e0892afeb..fd40337eb96e1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11870,8 +11870,6 @@ with pkgs; pretender = callPackage ../tools/security/pretender { }; - prettierd = callPackage ../development/tools/prettierd { }; - pretty-simple = callPackage ../development/tools/pretty-simple { }; prettyping = callPackage ../tools/networking/prettyping { };