mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
35 lines
748 B
Nix
35 lines
748 B
Nix
{
|
|
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;
|
|
|
|
postInstall = ''
|
|
# Remove the .bin directory as it contains broken symlinks
|
|
rm -rf $out/lib/node_modules/write-good/node_modules/.bin
|
|
'';
|
|
|
|
meta = {
|
|
description = "Naive linter for English prose";
|
|
homepage = "https://github.com/btford/write-good";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "write-good";
|
|
maintainers = [ ];
|
|
};
|
|
}
|