Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 34 lines 748 B view raw
1{ 2 lib, 3 buildNpmPackage, 4 fetchFromGitHub, 5}: 6 7buildNpmPackage rec { 8 pname = "write-good"; 9 version = "1.0.8"; 10 11 src = fetchFromGitHub { 12 owner = "btford"; 13 repo = "write-good"; 14 rev = "v${version}"; 15 hash = "sha256-cq3cj2BwoQMKqo3iU2l+PR/2bJIFMSTRsDGQJ06GWXk="; 16 }; 17 18 npmDepsHash = "sha256-0M9RzyeINmUPYcLy654iI+/ehElKrhIAibpiSqlXD2A="; 19 20 dontNpmBuild = true; 21 22 postInstall = '' 23 # Remove the .bin directory as it contains broken symlinks 24 rm -rf $out/lib/node_modules/write-good/node_modules/.bin 25 ''; 26 27 meta = { 28 description = "Naive linter for English prose"; 29 homepage = "https://github.com/btford/write-good"; 30 license = lib.licenses.mit; 31 mainProgram = "write-good"; 32 maintainers = [ ]; 33 }; 34}