2022-04-27 09:35:20 +00:00
|
|
|
{ cmake, fetchFromGitHub, lib, ninja, stdenv, testers, quick-lint-js }:
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "quick-lint-js";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "2.5.0";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "quick-lint";
|
|
|
|
repo = "quick-lint-js";
|
|
|
|
rev = version;
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "0vx6fddd0y8p27znv0ah0gjigs9hkifz132vzsnfg7w4s5az4fiy";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
|
|
|
doCheck = true;
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
passthru.tests = {
|
2022-04-27 09:35:20 +00:00
|
|
|
version = testers.testVersion { package = quick-lint-js; };
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Find bugs in Javascript programs";
|
|
|
|
homepage = "https://quick-lint-js.com";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ ratsclub ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|