1 { lib, buildNpmPackage, fetchFromGitHub, testers, lint-staged }:
7 src = fetchFromGitHub {
11 hash = "sha256-xuHrxi/1zfeY2dd625iLDNJFoNO28JJrPvmECdqeZXk=";
14 npmDepsHash = "sha256-4lyTBmcX5k//kbFHmzbOQJp+Jd9TPY7bzm51QuiXUzE=";
18 # Fixes `lint-staged --version` output
20 substituteInPlace package.json --replace \
21 '"version": "0.0.0-development"' \
22 '"version": "${version}"'
25 passthru.tests.version = testers.testVersion { package = lint-staged; };
28 description = "Run linters on git staged files";
30 Run linters against staged git files and don't let 💩 slip into your code base!
32 homepage = src.meta.homepage;
33 license = licenses.mit;
34 maintainers = with maintainers; [ DamienCassou ];
35 mainProgram = "lint-staged";