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-09-22 12:36:57 +00:00
|
|
|
version = "2.9.0";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "quick-lint";
|
|
|
|
repo = "quick-lint-js";
|
|
|
|
rev = version;
|
2022-09-22 12:36:57 +00:00
|
|
|
sha256 = "sha256-hWwEaUf+TntRfxI3HjJV+hJ+dV6TRncxSCbaxE1sIjs=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
|
|
|
doCheck = true;
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
# Temporary workaround for https://github.com/NixOS/nixpkgs/pull/108496#issuecomment-1192083379
|
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=ON" ];
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|