Skip to content

Commit

Permalink
write-good: use buildNpmPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Aug 21, 2023
1 parent a856bc3 commit dfc4c76
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 243 deletions.
1 change: 1 addition & 0 deletions pkgs/development/node-packages/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ mapAliases {
vscode-langservers-extracted = pkgs.vscode-langservers-extracted; # Added 2023-05-27
vue-cli = self."@vue/cli"; # added 2023-08-18
inherit (pkgs) web-ext; # added 2023-08-20
inherit (pkgs) write-good; # added 2023-08-20
inherit (pkgs) yo; # added 2023-08-20
zx = pkgs.zx; # added 2023-08-01
}
1 change: 0 additions & 1 deletion pkgs/development/node-packages/node-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@
, "@withgraphite/graphite-cli"
, "wrangler"
, "wring"
, "write-good"
, "@yaegassy/coc-nginx"
, "yaml-language-server"
, "yalc"
Expand Down
242 changes: 0 additions & 242 deletions pkgs/development/node-packages/node-packages.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions pkgs/tools/text/write-good/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:

buildNpmPackage rec {
pname = "write-good";
version = "1.0.8";

src = fetchFromGitHub {
owner = "btford";
repo = "write-good";
rev = "v${version}";
hash = "sha256-cq3cj2BwoQMKqo3iU2l+PR/2bJIFMSTRsDGQJ06GWXk=";
};

npmDepsHash = "sha256-0M9RzyeINmUPYcLy654iI+/ehElKrhIAibpiSqlXD2A=";

dontNpmBuild = true;

meta = {
description = "Naive linter for English prose";
homepage = "https://github.com/btford/write-good";
license = lib.licenses.mit;
mainProgram = "write-good";
maintainers = with lib.maintainers; [ ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14454,6 +14454,8 @@ with pkgs;

wpscan = callPackage ../tools/security/wpscan { };

write-good = callPackage ../tools/text/write-good { };

wsmancli = callPackage ../tools/system/wsmancli { };

wstunnel = haskell.lib.compose.justStaticExecutables haskellPackages.wstunnel;
Expand Down

0 comments on commit dfc4c76

Please sign in to comment.